diff --git a/CHANGELOG.md b/CHANGELOG.md index 33f518aae..0655c13f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - fix: make Horizon request builder URL generation idempotent so repeated `buildUri()` or `execute()` calls on the same builder do not duplicate path segments. - docs: add an [Agent Skill](https://agentskills.io/) for the Java Stellar SDK under `skills/`, plus Claude Code plugin manifests in `.claude-plugin/`. The skill gives AI coding agents concise, Stellar-specific guidance (transactions, operations, Horizon, Soroban, XDR/SCVal, and SEP protocols) when generating application code with `stellar-sdk`. - feat: add SEP-0046, SEP-0047, and SEP-0048 contract introspection support. New `ContractMeta`, `ContractSpec`, and `ContractInfo` wrappers under `org.stellar.sdk.contract` parse contract Wasm metadata and interface specs locally. `SorobanServer` adds `getContractWasm`, `getContractWasmByHash`, `getContractMeta`, `getContractSpec`, and `getContractInfo` for RPC-backed retrieval. +- chore: upgrade generated XDR definitions to Protocol 27. ## 3.0.0 diff --git a/Makefile b/Makefile index 43d8703e7..051b211b5 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ xdr/Stellar-transaction.x \ xdr/Stellar-types.x # stellar-xdr commit to use, see https://github.com/stellar/stellar-xdr -XDR_COMMIT=cff714a5ebaaaf2dac343b3546c2df73f0b7a36e +XDR_COMMIT=68fa1ac55692f68ad2a2ca549d0a283273554439 .PHONY: xdr xdr-clean xdr-update xdr-generator-test xdr-generator-update-snapshots diff --git a/src/main/java/org/stellar/sdk/xdr/AccountEntry.java b/src/main/java/org/stellar/sdk/xdr/AccountEntry.java index 3218beb84..3ca25b561 100644 --- a/src/main/java/org/stellar/sdk/xdr/AccountEntry.java +++ b/src/main/java/org/stellar/sdk/xdr/AccountEntry.java @@ -52,15 +52,84 @@ @AllArgsConstructor @Builder(toBuilder = true) public class AccountEntry implements XdrElement { + /** + * Value of the {@code accountID} field. + * + * @param accountID the {@code accountID} field value + * @return the {@code accountID} field value + */ private AccountID accountID; + + /** + * Value of the {@code balance} field. + * + * @param balance the {@code balance} field value + * @return the {@code balance} field value + */ private Int64 balance; + + /** + * Value of the {@code seqNum} field. + * + * @param seqNum the {@code seqNum} field value + * @return the {@code seqNum} field value + */ private SequenceNumber seqNum; + + /** + * Value of the {@code numSubEntries} field. + * + * @param numSubEntries the {@code numSubEntries} field value + * @return the {@code numSubEntries} field value + */ private Uint32 numSubEntries; + + /** + * Value of the {@code inflationDest} field. + * + * @param inflationDest the {@code inflationDest} field value + * @return the {@code inflationDest} field value + */ private AccountID inflationDest; + + /** + * Value of the {@code flags} field. + * + * @param flags the {@code flags} field value + * @return the {@code flags} field value + */ private Uint32 flags; + + /** + * Value of the {@code homeDomain} field. + * + * @param homeDomain the {@code homeDomain} field value + * @return the {@code homeDomain} field value + */ private String32 homeDomain; + + /** + * Value of the {@code thresholds} field. + * + * @param thresholds the {@code thresholds} field value + * @return the {@code thresholds} field value + */ private Thresholds thresholds; + + /** + * Value of the {@code signers} field. + * + * @param signers the {@code signers} field value + * @return the {@code signers} field value + */ private Signer[] signers; + + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private AccountEntryExt ext; public void encode(XdrDataOutputStream stream) throws IOException { @@ -210,7 +279,20 @@ static AccountEntry fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class AccountEntryExt implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; + + /** + * Value of the {@code v1} field. + * + * @param v1 the {@code v1} field value + * @return the {@code v1} field value + */ private AccountEntryExtensionV1 v1; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/AccountEntryExtensionV1.java b/src/main/java/org/stellar/sdk/xdr/AccountEntryExtensionV1.java index 69f4ec2ea..64adebc5b 100644 --- a/src/main/java/org/stellar/sdk/xdr/AccountEntryExtensionV1.java +++ b/src/main/java/org/stellar/sdk/xdr/AccountEntryExtensionV1.java @@ -36,7 +36,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class AccountEntryExtensionV1 implements XdrElement { + /** + * Value of the {@code liabilities} field. + * + * @param liabilities the {@code liabilities} field value + * @return the {@code liabilities} field value + */ private Liabilities liabilities; + + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private AccountEntryExtensionV1Ext ext; public void encode(XdrDataOutputStream stream) throws IOException { @@ -115,7 +128,20 @@ static AccountEntryExtensionV1 fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class AccountEntryExtensionV1Ext implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; + + /** + * Value of the {@code v2} field. + * + * @param v2 the {@code v2} field value + * @return the {@code v2} field value + */ private AccountEntryExtensionV2 v2; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/AccountEntryExtensionV2.java b/src/main/java/org/stellar/sdk/xdr/AccountEntryExtensionV2.java index e79c3d15d..c4ab8d99f 100644 --- a/src/main/java/org/stellar/sdk/xdr/AccountEntryExtensionV2.java +++ b/src/main/java/org/stellar/sdk/xdr/AccountEntryExtensionV2.java @@ -39,9 +39,36 @@ @AllArgsConstructor @Builder(toBuilder = true) public class AccountEntryExtensionV2 implements XdrElement { + /** + * Value of the {@code numSponsored} field. + * + * @param numSponsored the {@code numSponsored} field value + * @return the {@code numSponsored} field value + */ private Uint32 numSponsored; + + /** + * Value of the {@code numSponsoring} field. + * + * @param numSponsoring the {@code numSponsoring} field value + * @return the {@code numSponsoring} field value + */ private Uint32 numSponsoring; + + /** + * Value of the {@code signerSponsoringIDs} field. + * + * @param signerSponsoringIDs the {@code signerSponsoringIDs} field value + * @return the {@code signerSponsoringIDs} field value + */ private SponsorshipDescriptor[] signerSponsoringIDs; + + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private AccountEntryExtensionV2Ext ext; public void encode(XdrDataOutputStream stream) throws IOException { @@ -165,7 +192,20 @@ static AccountEntryExtensionV2 fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class AccountEntryExtensionV2Ext implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; + + /** + * Value of the {@code v3} field. + * + * @param v3 the {@code v3} field value + * @return the {@code v3} field value + */ private AccountEntryExtensionV3 v3; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/AccountEntryExtensionV3.java b/src/main/java/org/stellar/sdk/xdr/AccountEntryExtensionV3.java index 260baad28..c074df90c 100644 --- a/src/main/java/org/stellar/sdk/xdr/AccountEntryExtensionV3.java +++ b/src/main/java/org/stellar/sdk/xdr/AccountEntryExtensionV3.java @@ -35,8 +35,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class AccountEntryExtensionV3 implements XdrElement { + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private ExtensionPoint ext; + + /** + * Value of the {@code seqLedger} field. + * + * @param seqLedger the {@code seqLedger} field value + * @return the {@code seqLedger} field value + */ private Uint32 seqLedger; + + /** + * Value of the {@code seqTime} field. + * + * @param seqTime the {@code seqTime} field value + * @return the {@code seqTime} field value + */ private TimePoint seqTime; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/AccountID.java b/src/main/java/org/stellar/sdk/xdr/AccountID.java index a404d6187..1696f0fdb 100644 --- a/src/main/java/org/stellar/sdk/xdr/AccountID.java +++ b/src/main/java/org/stellar/sdk/xdr/AccountID.java @@ -22,6 +22,12 @@ @NoArgsConstructor @AllArgsConstructor public class AccountID implements XdrElement { + /** + * Value of the {@code AccountID} field. + * + * @param AccountID the {@code AccountID} field value + * @return the {@code AccountID} field value + */ private PublicKey AccountID; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/AccountMergeResult.java b/src/main/java/org/stellar/sdk/xdr/AccountMergeResult.java index b40e15961..2718fea03 100644 --- a/src/main/java/org/stellar/sdk/xdr/AccountMergeResult.java +++ b/src/main/java/org/stellar/sdk/xdr/AccountMergeResult.java @@ -36,7 +36,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class AccountMergeResult implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private AccountMergeResultCode discriminant; + + /** + * Value of the {@code sourceAccountBalance} field. + * + * @param sourceAccountBalance the {@code sourceAccountBalance} field value + * @return the {@code sourceAccountBalance} field value + */ private Int64 sourceAccountBalance; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/AllowTrustOp.java b/src/main/java/org/stellar/sdk/xdr/AllowTrustOp.java index db24e8245..b2a4eaa82 100644 --- a/src/main/java/org/stellar/sdk/xdr/AllowTrustOp.java +++ b/src/main/java/org/stellar/sdk/xdr/AllowTrustOp.java @@ -31,8 +31,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class AllowTrustOp implements XdrElement { + /** + * Value of the {@code trustor} field. + * + * @param trustor the {@code trustor} field value + * @return the {@code trustor} field value + */ private AccountID trustor; + + /** + * Value of the {@code asset} field. + * + * @param asset the {@code asset} field value + * @return the {@code asset} field value + */ private AssetCode asset; + + /** + * Value of the {@code authorize} field. + * + * @param authorize the {@code authorize} field value + * @return the {@code authorize} field value + */ private Uint32 authorize; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/AllowTrustResult.java b/src/main/java/org/stellar/sdk/xdr/AllowTrustResult.java index e47725395..968b36949 100644 --- a/src/main/java/org/stellar/sdk/xdr/AllowTrustResult.java +++ b/src/main/java/org/stellar/sdk/xdr/AllowTrustResult.java @@ -34,6 +34,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class AllowTrustResult implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private AllowTrustResultCode discriminant; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/AlphaNum12.java b/src/main/java/org/stellar/sdk/xdr/AlphaNum12.java index bbf801a3c..3e43f4364 100644 --- a/src/main/java/org/stellar/sdk/xdr/AlphaNum12.java +++ b/src/main/java/org/stellar/sdk/xdr/AlphaNum12.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class AlphaNum12 implements XdrElement { + /** + * Value of the {@code assetCode} field. + * + * @param assetCode the {@code assetCode} field value + * @return the {@code assetCode} field value + */ private AssetCode12 assetCode; + + /** + * Value of the {@code issuer} field. + * + * @param issuer the {@code issuer} field value + * @return the {@code issuer} field value + */ private AccountID issuer; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/AlphaNum4.java b/src/main/java/org/stellar/sdk/xdr/AlphaNum4.java index 60397d333..0ff2045f0 100644 --- a/src/main/java/org/stellar/sdk/xdr/AlphaNum4.java +++ b/src/main/java/org/stellar/sdk/xdr/AlphaNum4.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class AlphaNum4 implements XdrElement { + /** + * Value of the {@code assetCode} field. + * + * @param assetCode the {@code assetCode} field value + * @return the {@code assetCode} field value + */ private AssetCode4 assetCode; + + /** + * Value of the {@code issuer} field. + * + * @param issuer the {@code issuer} field value + * @return the {@code issuer} field value + */ private AccountID issuer; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/Asset.java b/src/main/java/org/stellar/sdk/xdr/Asset.java index 814756c4e..4172886cc 100644 --- a/src/main/java/org/stellar/sdk/xdr/Asset.java +++ b/src/main/java/org/stellar/sdk/xdr/Asset.java @@ -36,8 +36,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class Asset implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private AssetType discriminant; + + /** + * Value of the {@code alphaNum4} field. + * + * @param alphaNum4 the {@code alphaNum4} field value + * @return the {@code alphaNum4} field value + */ private AlphaNum4 alphaNum4; + + /** + * Value of the {@code alphaNum12} field. + * + * @param alphaNum12 the {@code alphaNum12} field value + * @return the {@code alphaNum12} field value + */ private AlphaNum12 alphaNum12; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/AssetCode.java b/src/main/java/org/stellar/sdk/xdr/AssetCode.java index 3ff87d615..aa8d5f1d2 100644 --- a/src/main/java/org/stellar/sdk/xdr/AssetCode.java +++ b/src/main/java/org/stellar/sdk/xdr/AssetCode.java @@ -33,8 +33,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class AssetCode implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private AssetType discriminant; + + /** + * Value of the {@code assetCode4} field. + * + * @param assetCode4 the {@code assetCode4} field value + * @return the {@code assetCode4} field value + */ private AssetCode4 assetCode4; + + /** + * Value of the {@code assetCode12} field. + * + * @param assetCode12 the {@code assetCode12} field value + * @return the {@code assetCode12} field value + */ private AssetCode12 assetCode12; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/AssetCode12.java b/src/main/java/org/stellar/sdk/xdr/AssetCode12.java index 11bb63018..96618ad76 100644 --- a/src/main/java/org/stellar/sdk/xdr/AssetCode12.java +++ b/src/main/java/org/stellar/sdk/xdr/AssetCode12.java @@ -21,6 +21,12 @@ @NoArgsConstructor @AllArgsConstructor public class AssetCode12 implements XdrElement { + /** + * Value of the {@code AssetCode12} field. + * + * @param AssetCode12 the {@code AssetCode12} field value + * @return the {@code AssetCode12} field value + */ private byte[] AssetCode12; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/AssetCode4.java b/src/main/java/org/stellar/sdk/xdr/AssetCode4.java index e4875e024..b514faa40 100644 --- a/src/main/java/org/stellar/sdk/xdr/AssetCode4.java +++ b/src/main/java/org/stellar/sdk/xdr/AssetCode4.java @@ -21,6 +21,12 @@ @NoArgsConstructor @AllArgsConstructor public class AssetCode4 implements XdrElement { + /** + * Value of the {@code AssetCode4} field. + * + * @param AssetCode4 the {@code AssetCode4} field value + * @return the {@code AssetCode4} field value + */ private byte[] AssetCode4; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/Auth.java b/src/main/java/org/stellar/sdk/xdr/Auth.java index fa6953c81..4e6a48d16 100644 --- a/src/main/java/org/stellar/sdk/xdr/Auth.java +++ b/src/main/java/org/stellar/sdk/xdr/Auth.java @@ -27,6 +27,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class Auth implements XdrElement { + /** + * Value of the {@code flags} field. + * + * @param flags the {@code flags} field value + * @return the {@code flags} field value + */ private Integer flags; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/AuthCert.java b/src/main/java/org/stellar/sdk/xdr/AuthCert.java index b7304d794..41d75d79d 100644 --- a/src/main/java/org/stellar/sdk/xdr/AuthCert.java +++ b/src/main/java/org/stellar/sdk/xdr/AuthCert.java @@ -29,8 +29,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class AuthCert implements XdrElement { + /** + * Value of the {@code pubkey} field. + * + * @param pubkey the {@code pubkey} field value + * @return the {@code pubkey} field value + */ private Curve25519Public pubkey; + + /** + * Value of the {@code expiration} field. + * + * @param expiration the {@code expiration} field value + * @return the {@code expiration} field value + */ private Uint64 expiration; + + /** + * Value of the {@code sig} field. + * + * @param sig the {@code sig} field value + * @return the {@code sig} field value + */ private Signature sig; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/AuthenticatedMessage.java b/src/main/java/org/stellar/sdk/xdr/AuthenticatedMessage.java index 378a4573b..86f18e1db 100644 --- a/src/main/java/org/stellar/sdk/xdr/AuthenticatedMessage.java +++ b/src/main/java/org/stellar/sdk/xdr/AuthenticatedMessage.java @@ -33,7 +33,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class AuthenticatedMessage implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Uint32 discriminant; + + /** + * Value of the {@code v0} field. + * + * @param v0 the {@code v0} field value + * @return the {@code v0} field value + */ private AuthenticatedMessageV0 v0; public void encode(XdrDataOutputStream stream) throws IOException { @@ -137,8 +150,28 @@ static AuthenticatedMessage fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class AuthenticatedMessageV0 implements XdrElement { + /** + * Value of the {@code sequence} field. + * + * @param sequence the {@code sequence} field value + * @return the {@code sequence} field value + */ private Uint64 sequence; + + /** + * Value of the {@code message} field. + * + * @param message the {@code message} field value + * @return the {@code message} field value + */ private StellarMessage message; + + /** + * Value of the {@code mac} field. + * + * @param mac the {@code mac} field value + * @return the {@code mac} field value + */ private HmacSha256Mac mac; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/BeginSponsoringFutureReservesOp.java b/src/main/java/org/stellar/sdk/xdr/BeginSponsoringFutureReservesOp.java index 98087d5fb..e015d479e 100644 --- a/src/main/java/org/stellar/sdk/xdr/BeginSponsoringFutureReservesOp.java +++ b/src/main/java/org/stellar/sdk/xdr/BeginSponsoringFutureReservesOp.java @@ -27,6 +27,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class BeginSponsoringFutureReservesOp implements XdrElement { + /** + * Value of the {@code sponsoredID} field. + * + * @param sponsoredID the {@code sponsoredID} field value + * @return the {@code sponsoredID} field value + */ private AccountID sponsoredID; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/BeginSponsoringFutureReservesResult.java b/src/main/java/org/stellar/sdk/xdr/BeginSponsoringFutureReservesResult.java index 7841d6aa4..292cc62b1 100644 --- a/src/main/java/org/stellar/sdk/xdr/BeginSponsoringFutureReservesResult.java +++ b/src/main/java/org/stellar/sdk/xdr/BeginSponsoringFutureReservesResult.java @@ -32,6 +32,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class BeginSponsoringFutureReservesResult implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private BeginSponsoringFutureReservesResultCode discriminant; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/BucketEntry.java b/src/main/java/org/stellar/sdk/xdr/BucketEntry.java index 2a67e2a62..0ec77c998 100644 --- a/src/main/java/org/stellar/sdk/xdr/BucketEntry.java +++ b/src/main/java/org/stellar/sdk/xdr/BucketEntry.java @@ -34,9 +34,36 @@ @AllArgsConstructor @Builder(toBuilder = true) public class BucketEntry implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private BucketEntryType discriminant; + + /** + * Value of the {@code liveEntry} field. + * + * @param liveEntry the {@code liveEntry} field value + * @return the {@code liveEntry} field value + */ private LedgerEntry liveEntry; + + /** + * Value of the {@code deadEntry} field. + * + * @param deadEntry the {@code deadEntry} field value + * @return the {@code deadEntry} field value + */ private LedgerKey deadEntry; + + /** + * Value of the {@code metaEntry} field. + * + * @param metaEntry the {@code metaEntry} field value + * @return the {@code metaEntry} field value + */ private BucketMetadata metaEntry; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/BucketMetadata.java b/src/main/java/org/stellar/sdk/xdr/BucketMetadata.java index 989bea670..4eb543f68 100644 --- a/src/main/java/org/stellar/sdk/xdr/BucketMetadata.java +++ b/src/main/java/org/stellar/sdk/xdr/BucketMetadata.java @@ -38,7 +38,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class BucketMetadata implements XdrElement { + /** + * Value of the {@code ledgerVersion} field. + * + * @param ledgerVersion the {@code ledgerVersion} field value + * @return the {@code ledgerVersion} field value + */ private Uint32 ledgerVersion; + + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private BucketMetadataExt ext; public void encode(XdrDataOutputStream stream) throws IOException { @@ -116,7 +129,20 @@ static BucketMetadata fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class BucketMetadataExt implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; + + /** + * Value of the {@code bucketListType} field. + * + * @param bucketListType the {@code bucketListType} field value + * @return the {@code bucketListType} field value + */ private BucketListType bucketListType; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/BumpSequenceOp.java b/src/main/java/org/stellar/sdk/xdr/BumpSequenceOp.java index 6be55966c..121cf5758 100644 --- a/src/main/java/org/stellar/sdk/xdr/BumpSequenceOp.java +++ b/src/main/java/org/stellar/sdk/xdr/BumpSequenceOp.java @@ -27,6 +27,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class BumpSequenceOp implements XdrElement { + /** + * Value of the {@code bumpTo} field. + * + * @param bumpTo the {@code bumpTo} field value + * @return the {@code bumpTo} field value + */ private SequenceNumber bumpTo; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/BumpSequenceResult.java b/src/main/java/org/stellar/sdk/xdr/BumpSequenceResult.java index 899896cda..2488f1c61 100644 --- a/src/main/java/org/stellar/sdk/xdr/BumpSequenceResult.java +++ b/src/main/java/org/stellar/sdk/xdr/BumpSequenceResult.java @@ -29,6 +29,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class BumpSequenceResult implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private BumpSequenceResultCode discriminant; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ChangeTrustAsset.java b/src/main/java/org/stellar/sdk/xdr/ChangeTrustAsset.java index f2e9ad51d..0136fda05 100644 --- a/src/main/java/org/stellar/sdk/xdr/ChangeTrustAsset.java +++ b/src/main/java/org/stellar/sdk/xdr/ChangeTrustAsset.java @@ -39,9 +39,36 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ChangeTrustAsset implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private AssetType discriminant; + + /** + * Value of the {@code alphaNum4} field. + * + * @param alphaNum4 the {@code alphaNum4} field value + * @return the {@code alphaNum4} field value + */ private AlphaNum4 alphaNum4; + + /** + * Value of the {@code alphaNum12} field. + * + * @param alphaNum12 the {@code alphaNum12} field value + * @return the {@code alphaNum12} field value + */ private AlphaNum12 alphaNum12; + + /** + * Value of the {@code liquidityPool} field. + * + * @param liquidityPool the {@code liquidityPool} field value + * @return the {@code liquidityPool} field value + */ private LiquidityPoolParameters liquidityPool; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ChangeTrustOp.java b/src/main/java/org/stellar/sdk/xdr/ChangeTrustOp.java index 022e57947..ce2950a75 100644 --- a/src/main/java/org/stellar/sdk/xdr/ChangeTrustOp.java +++ b/src/main/java/org/stellar/sdk/xdr/ChangeTrustOp.java @@ -30,7 +30,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ChangeTrustOp implements XdrElement { + /** + * Value of the {@code line} field. + * + * @param line the {@code line} field value + * @return the {@code line} field value + */ private ChangeTrustAsset line; + + /** + * Value of the {@code limit} field. + * + * @param limit the {@code limit} field value + * @return the {@code limit} field value + */ private Int64 limit; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ChangeTrustResult.java b/src/main/java/org/stellar/sdk/xdr/ChangeTrustResult.java index 59fd87102..5dba41897 100644 --- a/src/main/java/org/stellar/sdk/xdr/ChangeTrustResult.java +++ b/src/main/java/org/stellar/sdk/xdr/ChangeTrustResult.java @@ -36,6 +36,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ChangeTrustResult implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private ChangeTrustResultCode discriminant; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ClaimAtom.java b/src/main/java/org/stellar/sdk/xdr/ClaimAtom.java index 8cb57db49..2ac95a719 100644 --- a/src/main/java/org/stellar/sdk/xdr/ClaimAtom.java +++ b/src/main/java/org/stellar/sdk/xdr/ClaimAtom.java @@ -32,9 +32,36 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ClaimAtom implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private ClaimAtomType discriminant; + + /** + * Value of the {@code v0} field. + * + * @param v0 the {@code v0} field value + * @return the {@code v0} field value + */ private ClaimOfferAtomV0 v0; + + /** + * Value of the {@code orderBook} field. + * + * @param orderBook the {@code orderBook} field value + * @return the {@code orderBook} field value + */ private ClaimOfferAtom orderBook; + + /** + * Value of the {@code liquidityPool} field. + * + * @param liquidityPool the {@code liquidityPool} field value + * @return the {@code liquidityPool} field value + */ private ClaimLiquidityAtom liquidityPool; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ClaimClaimableBalanceOp.java b/src/main/java/org/stellar/sdk/xdr/ClaimClaimableBalanceOp.java index 530a9a951..82dc7a6a2 100644 --- a/src/main/java/org/stellar/sdk/xdr/ClaimClaimableBalanceOp.java +++ b/src/main/java/org/stellar/sdk/xdr/ClaimClaimableBalanceOp.java @@ -27,6 +27,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ClaimClaimableBalanceOp implements XdrElement { + /** + * Value of the {@code balanceID} field. + * + * @param balanceID the {@code balanceID} field value + * @return the {@code balanceID} field value + */ private ClaimableBalanceID balanceID; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ClaimClaimableBalanceResult.java b/src/main/java/org/stellar/sdk/xdr/ClaimClaimableBalanceResult.java index 26edee5a8..574d2acd0 100644 --- a/src/main/java/org/stellar/sdk/xdr/ClaimClaimableBalanceResult.java +++ b/src/main/java/org/stellar/sdk/xdr/ClaimClaimableBalanceResult.java @@ -34,6 +34,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ClaimClaimableBalanceResult implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private ClaimClaimableBalanceResultCode discriminant; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ClaimLiquidityAtom.java b/src/main/java/org/stellar/sdk/xdr/ClaimLiquidityAtom.java index 63b6d1222..1caaf1ca6 100644 --- a/src/main/java/org/stellar/sdk/xdr/ClaimLiquidityAtom.java +++ b/src/main/java/org/stellar/sdk/xdr/ClaimLiquidityAtom.java @@ -35,10 +35,44 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ClaimLiquidityAtom implements XdrElement { + /** + * Value of the {@code liquidityPoolID} field. + * + * @param liquidityPoolID the {@code liquidityPoolID} field value + * @return the {@code liquidityPoolID} field value + */ private PoolID liquidityPoolID; + + /** + * Value of the {@code assetSold} field. + * + * @param assetSold the {@code assetSold} field value + * @return the {@code assetSold} field value + */ private Asset assetSold; + + /** + * Value of the {@code amountSold} field. + * + * @param amountSold the {@code amountSold} field value + * @return the {@code amountSold} field value + */ private Int64 amountSold; + + /** + * Value of the {@code assetBought} field. + * + * @param assetBought the {@code assetBought} field value + * @return the {@code assetBought} field value + */ private Asset assetBought; + + /** + * Value of the {@code amountBought} field. + * + * @param amountBought the {@code amountBought} field value + * @return the {@code amountBought} field value + */ private Int64 amountBought; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ClaimOfferAtom.java b/src/main/java/org/stellar/sdk/xdr/ClaimOfferAtom.java index 14b72974d..f853fb252 100644 --- a/src/main/java/org/stellar/sdk/xdr/ClaimOfferAtom.java +++ b/src/main/java/org/stellar/sdk/xdr/ClaimOfferAtom.java @@ -37,11 +37,52 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ClaimOfferAtom implements XdrElement { + /** + * Value of the {@code sellerID} field. + * + * @param sellerID the {@code sellerID} field value + * @return the {@code sellerID} field value + */ private AccountID sellerID; + + /** + * Value of the {@code offerID} field. + * + * @param offerID the {@code offerID} field value + * @return the {@code offerID} field value + */ private Int64 offerID; + + /** + * Value of the {@code assetSold} field. + * + * @param assetSold the {@code assetSold} field value + * @return the {@code assetSold} field value + */ private Asset assetSold; + + /** + * Value of the {@code amountSold} field. + * + * @param amountSold the {@code amountSold} field value + * @return the {@code amountSold} field value + */ private Int64 amountSold; + + /** + * Value of the {@code assetBought} field. + * + * @param assetBought the {@code assetBought} field value + * @return the {@code assetBought} field value + */ private Asset assetBought; + + /** + * Value of the {@code amountBought} field. + * + * @param amountBought the {@code amountBought} field value + * @return the {@code amountBought} field value + */ private Int64 amountBought; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ClaimOfferAtomV0.java b/src/main/java/org/stellar/sdk/xdr/ClaimOfferAtomV0.java index 84897b4e4..b5e38c2bb 100644 --- a/src/main/java/org/stellar/sdk/xdr/ClaimOfferAtomV0.java +++ b/src/main/java/org/stellar/sdk/xdr/ClaimOfferAtomV0.java @@ -37,11 +37,52 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ClaimOfferAtomV0 implements XdrElement { + /** + * Value of the {@code sellerEd25519} field. + * + * @param sellerEd25519 the {@code sellerEd25519} field value + * @return the {@code sellerEd25519} field value + */ private Uint256 sellerEd25519; + + /** + * Value of the {@code offerID} field. + * + * @param offerID the {@code offerID} field value + * @return the {@code offerID} field value + */ private Int64 offerID; + + /** + * Value of the {@code assetSold} field. + * + * @param assetSold the {@code assetSold} field value + * @return the {@code assetSold} field value + */ private Asset assetSold; + + /** + * Value of the {@code amountSold} field. + * + * @param amountSold the {@code amountSold} field value + * @return the {@code amountSold} field value + */ private Int64 amountSold; + + /** + * Value of the {@code assetBought} field. + * + * @param assetBought the {@code assetBought} field value + * @return the {@code assetBought} field value + */ private Asset assetBought; + + /** + * Value of the {@code amountBought} field. + * + * @param amountBought the {@code amountBought} field value + * @return the {@code amountBought} field value + */ private Int64 amountBought; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ClaimPredicate.java b/src/main/java/org/stellar/sdk/xdr/ClaimPredicate.java index e7d272f34..29d620cee 100644 --- a/src/main/java/org/stellar/sdk/xdr/ClaimPredicate.java +++ b/src/main/java/org/stellar/sdk/xdr/ClaimPredicate.java @@ -40,11 +40,52 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ClaimPredicate implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private ClaimPredicateType discriminant; + + /** + * Value of the {@code andPredicates} field. + * + * @param andPredicates the {@code andPredicates} field value + * @return the {@code andPredicates} field value + */ private ClaimPredicate[] andPredicates; + + /** + * Value of the {@code orPredicates} field. + * + * @param orPredicates the {@code orPredicates} field value + * @return the {@code orPredicates} field value + */ private ClaimPredicate[] orPredicates; + + /** + * Value of the {@code notPredicate} field. + * + * @param notPredicate the {@code notPredicate} field value + * @return the {@code notPredicate} field value + */ private ClaimPredicate notPredicate; + + /** + * Value of the {@code absBefore} field. + * + * @param absBefore the {@code absBefore} field value + * @return the {@code absBefore} field value + */ private Int64 absBefore; + + /** + * Value of the {@code relBefore} field. + * + * @param relBefore the {@code relBefore} field value + * @return the {@code relBefore} field value + */ private Int64 relBefore; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ClaimableBalanceEntry.java b/src/main/java/org/stellar/sdk/xdr/ClaimableBalanceEntry.java index 0ab4f0f7b..834f09725 100644 --- a/src/main/java/org/stellar/sdk/xdr/ClaimableBalanceEntry.java +++ b/src/main/java/org/stellar/sdk/xdr/ClaimableBalanceEntry.java @@ -48,10 +48,44 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ClaimableBalanceEntry implements XdrElement { + /** + * Value of the {@code balanceID} field. + * + * @param balanceID the {@code balanceID} field value + * @return the {@code balanceID} field value + */ private ClaimableBalanceID balanceID; + + /** + * Value of the {@code claimants} field. + * + * @param claimants the {@code claimants} field value + * @return the {@code claimants} field value + */ private Claimant[] claimants; + + /** + * Value of the {@code asset} field. + * + * @param asset the {@code asset} field value + * @return the {@code asset} field value + */ private Asset asset; + + /** + * Value of the {@code amount} field. + * + * @param amount the {@code amount} field value + * @return the {@code amount} field value + */ private Int64 amount; + + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private ClaimableBalanceEntryExt ext; public void encode(XdrDataOutputStream stream) throws IOException { @@ -172,7 +206,20 @@ static ClaimableBalanceEntry fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class ClaimableBalanceEntryExt implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; + + /** + * Value of the {@code v1} field. + * + * @param v1 the {@code v1} field value + * @return the {@code v1} field value + */ private ClaimableBalanceEntryExtensionV1 v1; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ClaimableBalanceEntryExtensionV1.java b/src/main/java/org/stellar/sdk/xdr/ClaimableBalanceEntryExtensionV1.java index cd58ffa7c..db24e58c8 100644 --- a/src/main/java/org/stellar/sdk/xdr/ClaimableBalanceEntryExtensionV1.java +++ b/src/main/java/org/stellar/sdk/xdr/ClaimableBalanceEntryExtensionV1.java @@ -34,7 +34,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ClaimableBalanceEntryExtensionV1 implements XdrElement { + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private ClaimableBalanceEntryExtensionV1Ext ext; + + /** + * Value of the {@code flags} field. + * + * @param flags the {@code flags} field value + * @return the {@code flags} field value + */ private Uint32 flags; public void encode(XdrDataOutputStream stream) throws IOException { @@ -114,6 +127,12 @@ static ClaimableBalanceEntryExtensionV1 fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class ClaimableBalanceEntryExtensionV1Ext implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ClaimableBalanceID.java b/src/main/java/org/stellar/sdk/xdr/ClaimableBalanceID.java index 0c77881e1..5bbdc0612 100644 --- a/src/main/java/org/stellar/sdk/xdr/ClaimableBalanceID.java +++ b/src/main/java/org/stellar/sdk/xdr/ClaimableBalanceID.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ClaimableBalanceID implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private ClaimableBalanceIDType discriminant; + + /** + * Value of the {@code v0} field. + * + * @param v0 the {@code v0} field value + * @return the {@code v0} field value + */ private Hash v0; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/Claimant.java b/src/main/java/org/stellar/sdk/xdr/Claimant.java index 6f98a2e8a..e68de39a0 100644 --- a/src/main/java/org/stellar/sdk/xdr/Claimant.java +++ b/src/main/java/org/stellar/sdk/xdr/Claimant.java @@ -32,7 +32,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class Claimant implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private ClaimantType discriminant; + + /** + * Value of the {@code v0} field. + * + * @param v0 the {@code v0} field value + * @return the {@code v0} field value + */ private ClaimantV0 v0; public void encode(XdrDataOutputStream stream) throws IOException { @@ -133,7 +146,20 @@ static Claimant fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class ClaimantV0 implements XdrElement { + /** + * Value of the {@code destination} field. + * + * @param destination the {@code destination} field value + * @return the {@code destination} field value + */ private AccountID destination; + + /** + * Value of the {@code predicate} field. + * + * @param predicate the {@code predicate} field value + * @return the {@code predicate} field value + */ private ClaimPredicate predicate; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ClawbackClaimableBalanceOp.java b/src/main/java/org/stellar/sdk/xdr/ClawbackClaimableBalanceOp.java index 512db12ad..98f92b787 100644 --- a/src/main/java/org/stellar/sdk/xdr/ClawbackClaimableBalanceOp.java +++ b/src/main/java/org/stellar/sdk/xdr/ClawbackClaimableBalanceOp.java @@ -27,6 +27,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ClawbackClaimableBalanceOp implements XdrElement { + /** + * Value of the {@code balanceID} field. + * + * @param balanceID the {@code balanceID} field value + * @return the {@code balanceID} field value + */ private ClaimableBalanceID balanceID; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ClawbackClaimableBalanceResult.java b/src/main/java/org/stellar/sdk/xdr/ClawbackClaimableBalanceResult.java index b5b37ad3b..7026baf47 100644 --- a/src/main/java/org/stellar/sdk/xdr/ClawbackClaimableBalanceResult.java +++ b/src/main/java/org/stellar/sdk/xdr/ClawbackClaimableBalanceResult.java @@ -32,6 +32,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ClawbackClaimableBalanceResult implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private ClawbackClaimableBalanceResultCode discriminant; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ClawbackOp.java b/src/main/java/org/stellar/sdk/xdr/ClawbackOp.java index f65c4e1bb..6dff576d8 100644 --- a/src/main/java/org/stellar/sdk/xdr/ClawbackOp.java +++ b/src/main/java/org/stellar/sdk/xdr/ClawbackOp.java @@ -29,8 +29,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ClawbackOp implements XdrElement { + /** + * Value of the {@code asset} field. + * + * @param asset the {@code asset} field value + * @return the {@code asset} field value + */ private Asset asset; + + /** + * Value of the {@code from} field. + * + * @param from the {@code from} field value + * @return the {@code from} field value + */ private MuxedAccount from; + + /** + * Value of the {@code amount} field. + * + * @param amount the {@code amount} field value + * @return the {@code amount} field value + */ private Int64 amount; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ClawbackResult.java b/src/main/java/org/stellar/sdk/xdr/ClawbackResult.java index 0af560203..41b189d33 100644 --- a/src/main/java/org/stellar/sdk/xdr/ClawbackResult.java +++ b/src/main/java/org/stellar/sdk/xdr/ClawbackResult.java @@ -32,6 +32,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ClawbackResult implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private ClawbackResultCode discriminant; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ConfigSettingContractBandwidthV0.java b/src/main/java/org/stellar/sdk/xdr/ConfigSettingContractBandwidthV0.java index ffed1286c..219b55a3e 100644 --- a/src/main/java/org/stellar/sdk/xdr/ConfigSettingContractBandwidthV0.java +++ b/src/main/java/org/stellar/sdk/xdr/ConfigSettingContractBandwidthV0.java @@ -33,8 +33,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ConfigSettingContractBandwidthV0 implements XdrElement { + /** + * Value of the {@code ledgerMaxTxsSizeBytes} field. + * + * @param ledgerMaxTxsSizeBytes the {@code ledgerMaxTxsSizeBytes} field value + * @return the {@code ledgerMaxTxsSizeBytes} field value + */ private Uint32 ledgerMaxTxsSizeBytes; + + /** + * Value of the {@code txMaxSizeBytes} field. + * + * @param txMaxSizeBytes the {@code txMaxSizeBytes} field value + * @return the {@code txMaxSizeBytes} field value + */ private Uint32 txMaxSizeBytes; + + /** + * Value of the {@code feeTxSize1KB} field. + * + * @param feeTxSize1KB the {@code feeTxSize1KB} field value + * @return the {@code feeTxSize1KB} field value + */ private Int64 feeTxSize1KB; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ConfigSettingContractComputeV0.java b/src/main/java/org/stellar/sdk/xdr/ConfigSettingContractComputeV0.java index 562826fa0..e63cf89c5 100644 --- a/src/main/java/org/stellar/sdk/xdr/ConfigSettingContractComputeV0.java +++ b/src/main/java/org/stellar/sdk/xdr/ConfigSettingContractComputeV0.java @@ -36,9 +36,36 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ConfigSettingContractComputeV0 implements XdrElement { + /** + * Value of the {@code ledgerMaxInstructions} field. + * + * @param ledgerMaxInstructions the {@code ledgerMaxInstructions} field value + * @return the {@code ledgerMaxInstructions} field value + */ private Int64 ledgerMaxInstructions; + + /** + * Value of the {@code txMaxInstructions} field. + * + * @param txMaxInstructions the {@code txMaxInstructions} field value + * @return the {@code txMaxInstructions} field value + */ private Int64 txMaxInstructions; + + /** + * Value of the {@code feeRatePerInstructionsIncrement} field. + * + * @param feeRatePerInstructionsIncrement the {@code feeRatePerInstructionsIncrement} field value + * @return the {@code feeRatePerInstructionsIncrement} field value + */ private Int64 feeRatePerInstructionsIncrement; + + /** + * Value of the {@code txMemoryLimit} field. + * + * @param txMemoryLimit the {@code txMemoryLimit} field value + * @return the {@code txMemoryLimit} field value + */ private Uint32 txMemoryLimit; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ConfigSettingContractEventsV0.java b/src/main/java/org/stellar/sdk/xdr/ConfigSettingContractEventsV0.java index 4128bbe77..af02e3e77 100644 --- a/src/main/java/org/stellar/sdk/xdr/ConfigSettingContractEventsV0.java +++ b/src/main/java/org/stellar/sdk/xdr/ConfigSettingContractEventsV0.java @@ -30,7 +30,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ConfigSettingContractEventsV0 implements XdrElement { + /** + * Value of the {@code txMaxContractEventsSizeBytes} field. + * + * @param txMaxContractEventsSizeBytes the {@code txMaxContractEventsSizeBytes} field value + * @return the {@code txMaxContractEventsSizeBytes} field value + */ private Uint32 txMaxContractEventsSizeBytes; + + /** + * Value of the {@code feeContractEvents1KB} field. + * + * @param feeContractEvents1KB the {@code feeContractEvents1KB} field value + * @return the {@code feeContractEvents1KB} field value + */ private Int64 feeContractEvents1KB; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ConfigSettingContractExecutionLanesV0.java b/src/main/java/org/stellar/sdk/xdr/ConfigSettingContractExecutionLanesV0.java index 94391107f..84ae90608 100644 --- a/src/main/java/org/stellar/sdk/xdr/ConfigSettingContractExecutionLanesV0.java +++ b/src/main/java/org/stellar/sdk/xdr/ConfigSettingContractExecutionLanesV0.java @@ -28,6 +28,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ConfigSettingContractExecutionLanesV0 implements XdrElement { + /** + * Value of the {@code ledgerMaxTxCount} field. + * + * @param ledgerMaxTxCount the {@code ledgerMaxTxCount} field value + * @return the {@code ledgerMaxTxCount} field value + */ private Uint32 ledgerMaxTxCount; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ConfigSettingContractHistoricalDataV0.java b/src/main/java/org/stellar/sdk/xdr/ConfigSettingContractHistoricalDataV0.java index 23b7c95ba..1438dd33c 100644 --- a/src/main/java/org/stellar/sdk/xdr/ConfigSettingContractHistoricalDataV0.java +++ b/src/main/java/org/stellar/sdk/xdr/ConfigSettingContractHistoricalDataV0.java @@ -27,6 +27,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ConfigSettingContractHistoricalDataV0 implements XdrElement { + /** + * Value of the {@code feeHistorical1KB} field. + * + * @param feeHistorical1KB the {@code feeHistorical1KB} field value + * @return the {@code feeHistorical1KB} field value + */ private Int64 feeHistorical1KB; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ConfigSettingContractLedgerCostExtV0.java b/src/main/java/org/stellar/sdk/xdr/ConfigSettingContractLedgerCostExtV0.java index e82e9b590..c77e3e4ac 100644 --- a/src/main/java/org/stellar/sdk/xdr/ConfigSettingContractLedgerCostExtV0.java +++ b/src/main/java/org/stellar/sdk/xdr/ConfigSettingContractLedgerCostExtV0.java @@ -32,7 +32,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ConfigSettingContractLedgerCostExtV0 implements XdrElement { + /** + * Value of the {@code txMaxFootprintEntries} field. + * + * @param txMaxFootprintEntries the {@code txMaxFootprintEntries} field value + * @return the {@code txMaxFootprintEntries} field value + */ private Uint32 txMaxFootprintEntries; + + /** + * Value of the {@code feeWrite1KB} field. + * + * @param feeWrite1KB the {@code feeWrite1KB} field value + * @return the {@code feeWrite1KB} field value + */ private Int64 feeWrite1KB; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ConfigSettingContractLedgerCostV0.java b/src/main/java/org/stellar/sdk/xdr/ConfigSettingContractLedgerCostV0.java index 4bdce0551..1f5f71292 100644 --- a/src/main/java/org/stellar/sdk/xdr/ConfigSettingContractLedgerCostV0.java +++ b/src/main/java/org/stellar/sdk/xdr/ConfigSettingContractLedgerCostV0.java @@ -58,20 +58,124 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ConfigSettingContractLedgerCostV0 implements XdrElement { + /** + * Value of the {@code ledgerMaxDiskReadEntries} field. + * + * @param ledgerMaxDiskReadEntries the {@code ledgerMaxDiskReadEntries} field value + * @return the {@code ledgerMaxDiskReadEntries} field value + */ private Uint32 ledgerMaxDiskReadEntries; + + /** + * Value of the {@code ledgerMaxDiskReadBytes} field. + * + * @param ledgerMaxDiskReadBytes the {@code ledgerMaxDiskReadBytes} field value + * @return the {@code ledgerMaxDiskReadBytes} field value + */ private Uint32 ledgerMaxDiskReadBytes; + + /** + * Value of the {@code ledgerMaxWriteLedgerEntries} field. + * + * @param ledgerMaxWriteLedgerEntries the {@code ledgerMaxWriteLedgerEntries} field value + * @return the {@code ledgerMaxWriteLedgerEntries} field value + */ private Uint32 ledgerMaxWriteLedgerEntries; + + /** + * Value of the {@code ledgerMaxWriteBytes} field. + * + * @param ledgerMaxWriteBytes the {@code ledgerMaxWriteBytes} field value + * @return the {@code ledgerMaxWriteBytes} field value + */ private Uint32 ledgerMaxWriteBytes; + + /** + * Value of the {@code txMaxDiskReadEntries} field. + * + * @param txMaxDiskReadEntries the {@code txMaxDiskReadEntries} field value + * @return the {@code txMaxDiskReadEntries} field value + */ private Uint32 txMaxDiskReadEntries; + + /** + * Value of the {@code txMaxDiskReadBytes} field. + * + * @param txMaxDiskReadBytes the {@code txMaxDiskReadBytes} field value + * @return the {@code txMaxDiskReadBytes} field value + */ private Uint32 txMaxDiskReadBytes; + + /** + * Value of the {@code txMaxWriteLedgerEntries} field. + * + * @param txMaxWriteLedgerEntries the {@code txMaxWriteLedgerEntries} field value + * @return the {@code txMaxWriteLedgerEntries} field value + */ private Uint32 txMaxWriteLedgerEntries; + + /** + * Value of the {@code txMaxWriteBytes} field. + * + * @param txMaxWriteBytes the {@code txMaxWriteBytes} field value + * @return the {@code txMaxWriteBytes} field value + */ private Uint32 txMaxWriteBytes; + + /** + * Value of the {@code feeDiskReadLedgerEntry} field. + * + * @param feeDiskReadLedgerEntry the {@code feeDiskReadLedgerEntry} field value + * @return the {@code feeDiskReadLedgerEntry} field value + */ private Int64 feeDiskReadLedgerEntry; + + /** + * Value of the {@code feeWriteLedgerEntry} field. + * + * @param feeWriteLedgerEntry the {@code feeWriteLedgerEntry} field value + * @return the {@code feeWriteLedgerEntry} field value + */ private Int64 feeWriteLedgerEntry; + + /** + * Value of the {@code feeDiskRead1KB} field. + * + * @param feeDiskRead1KB the {@code feeDiskRead1KB} field value + * @return the {@code feeDiskRead1KB} field value + */ private Int64 feeDiskRead1KB; + + /** + * Value of the {@code sorobanStateTargetSizeBytes} field. + * + * @param sorobanStateTargetSizeBytes the {@code sorobanStateTargetSizeBytes} field value + * @return the {@code sorobanStateTargetSizeBytes} field value + */ private Int64 sorobanStateTargetSizeBytes; + + /** + * Value of the {@code rentFee1KBSorobanStateSizeLow} field. + * + * @param rentFee1KBSorobanStateSizeLow the {@code rentFee1KBSorobanStateSizeLow} field value + * @return the {@code rentFee1KBSorobanStateSizeLow} field value + */ private Int64 rentFee1KBSorobanStateSizeLow; + + /** + * Value of the {@code rentFee1KBSorobanStateSizeHigh} field. + * + * @param rentFee1KBSorobanStateSizeHigh the {@code rentFee1KBSorobanStateSizeHigh} field value + * @return the {@code rentFee1KBSorobanStateSizeHigh} field value + */ private Int64 rentFee1KBSorobanStateSizeHigh; + + /** + * Value of the {@code sorobanStateRentFeeGrowthFactor} field. + * + * @param sorobanStateRentFeeGrowthFactor the {@code sorobanStateRentFeeGrowthFactor} field value + * @return the {@code sorobanStateRentFeeGrowthFactor} field value + */ private Uint32 sorobanStateRentFeeGrowthFactor; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ConfigSettingContractParallelComputeV0.java b/src/main/java/org/stellar/sdk/xdr/ConfigSettingContractParallelComputeV0.java index 9081d87d8..d37c78501 100644 --- a/src/main/java/org/stellar/sdk/xdr/ConfigSettingContractParallelComputeV0.java +++ b/src/main/java/org/stellar/sdk/xdr/ConfigSettingContractParallelComputeV0.java @@ -31,6 +31,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ConfigSettingContractParallelComputeV0 implements XdrElement { + /** + * Value of the {@code ledgerMaxDependentTxClusters} field. + * + * @param ledgerMaxDependentTxClusters the {@code ledgerMaxDependentTxClusters} field value + * @return the {@code ledgerMaxDependentTxClusters} field value + */ private Uint32 ledgerMaxDependentTxClusters; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ConfigSettingEntry.java b/src/main/java/org/stellar/sdk/xdr/ConfigSettingEntry.java index 766221090..255624178 100644 --- a/src/main/java/org/stellar/sdk/xdr/ConfigSettingEntry.java +++ b/src/main/java/org/stellar/sdk/xdr/ConfigSettingEntry.java @@ -69,27 +69,180 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ConfigSettingEntry implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private ConfigSettingID discriminant; + + /** + * Value of the {@code contractMaxSizeBytes} field. + * + * @param contractMaxSizeBytes the {@code contractMaxSizeBytes} field value + * @return the {@code contractMaxSizeBytes} field value + */ private Uint32 contractMaxSizeBytes; + + /** + * Value of the {@code contractCompute} field. + * + * @param contractCompute the {@code contractCompute} field value + * @return the {@code contractCompute} field value + */ private ConfigSettingContractComputeV0 contractCompute; + + /** + * Value of the {@code contractLedgerCost} field. + * + * @param contractLedgerCost the {@code contractLedgerCost} field value + * @return the {@code contractLedgerCost} field value + */ private ConfigSettingContractLedgerCostV0 contractLedgerCost; + + /** + * Value of the {@code contractHistoricalData} field. + * + * @param contractHistoricalData the {@code contractHistoricalData} field value + * @return the {@code contractHistoricalData} field value + */ private ConfigSettingContractHistoricalDataV0 contractHistoricalData; + + /** + * Value of the {@code contractEvents} field. + * + * @param contractEvents the {@code contractEvents} field value + * @return the {@code contractEvents} field value + */ private ConfigSettingContractEventsV0 contractEvents; + + /** + * Value of the {@code contractBandwidth} field. + * + * @param contractBandwidth the {@code contractBandwidth} field value + * @return the {@code contractBandwidth} field value + */ private ConfigSettingContractBandwidthV0 contractBandwidth; + + /** + * Value of the {@code contractCostParamsCpuInsns} field. + * + * @param contractCostParamsCpuInsns the {@code contractCostParamsCpuInsns} field value + * @return the {@code contractCostParamsCpuInsns} field value + */ private ContractCostParams contractCostParamsCpuInsns; + + /** + * Value of the {@code contractCostParamsMemBytes} field. + * + * @param contractCostParamsMemBytes the {@code contractCostParamsMemBytes} field value + * @return the {@code contractCostParamsMemBytes} field value + */ private ContractCostParams contractCostParamsMemBytes; + + /** + * Value of the {@code contractDataKeySizeBytes} field. + * + * @param contractDataKeySizeBytes the {@code contractDataKeySizeBytes} field value + * @return the {@code contractDataKeySizeBytes} field value + */ private Uint32 contractDataKeySizeBytes; + + /** + * Value of the {@code contractDataEntrySizeBytes} field. + * + * @param contractDataEntrySizeBytes the {@code contractDataEntrySizeBytes} field value + * @return the {@code contractDataEntrySizeBytes} field value + */ private Uint32 contractDataEntrySizeBytes; + + /** + * Value of the {@code stateArchivalSettings} field. + * + * @param stateArchivalSettings the {@code stateArchivalSettings} field value + * @return the {@code stateArchivalSettings} field value + */ private StateArchivalSettings stateArchivalSettings; + + /** + * Value of the {@code contractExecutionLanes} field. + * + * @param contractExecutionLanes the {@code contractExecutionLanes} field value + * @return the {@code contractExecutionLanes} field value + */ private ConfigSettingContractExecutionLanesV0 contractExecutionLanes; + + /** + * Value of the {@code liveSorobanStateSizeWindow} field. + * + * @param liveSorobanStateSizeWindow the {@code liveSorobanStateSizeWindow} field value + * @return the {@code liveSorobanStateSizeWindow} field value + */ private Uint64[] liveSorobanStateSizeWindow; + + /** + * Value of the {@code evictionIterator} field. + * + * @param evictionIterator the {@code evictionIterator} field value + * @return the {@code evictionIterator} field value + */ private EvictionIterator evictionIterator; + + /** + * Value of the {@code contractParallelCompute} field. + * + * @param contractParallelCompute the {@code contractParallelCompute} field value + * @return the {@code contractParallelCompute} field value + */ private ConfigSettingContractParallelComputeV0 contractParallelCompute; + + /** + * Value of the {@code contractLedgerCostExt} field. + * + * @param contractLedgerCostExt the {@code contractLedgerCostExt} field value + * @return the {@code contractLedgerCostExt} field value + */ private ConfigSettingContractLedgerCostExtV0 contractLedgerCostExt; + + /** + * Value of the {@code contractSCPTiming} field. + * + * @param contractSCPTiming the {@code contractSCPTiming} field value + * @return the {@code contractSCPTiming} field value + */ private ConfigSettingSCPTiming contractSCPTiming; + + /** + * Value of the {@code frozenLedgerKeys} field. + * + * @param frozenLedgerKeys the {@code frozenLedgerKeys} field value + * @return the {@code frozenLedgerKeys} field value + */ private FrozenLedgerKeys frozenLedgerKeys; + + /** + * Value of the {@code frozenLedgerKeysDelta} field. + * + * @param frozenLedgerKeysDelta the {@code frozenLedgerKeysDelta} field value + * @return the {@code frozenLedgerKeysDelta} field value + */ private FrozenLedgerKeysDelta frozenLedgerKeysDelta; + + /** + * Value of the {@code freezeBypassTxs} field. + * + * @param freezeBypassTxs the {@code freezeBypassTxs} field value + * @return the {@code freezeBypassTxs} field value + */ private FreezeBypassTxs freezeBypassTxs; + + /** + * Value of the {@code freezeBypassTxsDelta} field. + * + * @param freezeBypassTxsDelta the {@code freezeBypassTxsDelta} field value + * @return the {@code freezeBypassTxsDelta} field value + */ private FreezeBypassTxsDelta freezeBypassTxsDelta; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ConfigSettingSCPTiming.java b/src/main/java/org/stellar/sdk/xdr/ConfigSettingSCPTiming.java index 7776e1523..157263552 100644 --- a/src/main/java/org/stellar/sdk/xdr/ConfigSettingSCPTiming.java +++ b/src/main/java/org/stellar/sdk/xdr/ConfigSettingSCPTiming.java @@ -30,10 +30,49 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ConfigSettingSCPTiming implements XdrElement { + /** + * Value of the {@code ledgerTargetCloseTimeMilliseconds} field. + * + * @param ledgerTargetCloseTimeMilliseconds the {@code ledgerTargetCloseTimeMilliseconds} field + * value + * @return the {@code ledgerTargetCloseTimeMilliseconds} field value + */ private Uint32 ledgerTargetCloseTimeMilliseconds; + + /** + * Value of the {@code nominationTimeoutInitialMilliseconds} field. + * + * @param nominationTimeoutInitialMilliseconds the {@code nominationTimeoutInitialMilliseconds} + * field value + * @return the {@code nominationTimeoutInitialMilliseconds} field value + */ private Uint32 nominationTimeoutInitialMilliseconds; + + /** + * Value of the {@code nominationTimeoutIncrementMilliseconds} field. + * + * @param nominationTimeoutIncrementMilliseconds the {@code + * nominationTimeoutIncrementMilliseconds} field value + * @return the {@code nominationTimeoutIncrementMilliseconds} field value + */ private Uint32 nominationTimeoutIncrementMilliseconds; + + /** + * Value of the {@code ballotTimeoutInitialMilliseconds} field. + * + * @param ballotTimeoutInitialMilliseconds the {@code ballotTimeoutInitialMilliseconds} field + * value + * @return the {@code ballotTimeoutInitialMilliseconds} field value + */ private Uint32 ballotTimeoutInitialMilliseconds; + + /** + * Value of the {@code ballotTimeoutIncrementMilliseconds} field. + * + * @param ballotTimeoutIncrementMilliseconds the {@code ballotTimeoutIncrementMilliseconds} field + * value + * @return the {@code ballotTimeoutIncrementMilliseconds} field value + */ private Uint32 ballotTimeoutIncrementMilliseconds; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ConfigUpgradeSet.java b/src/main/java/org/stellar/sdk/xdr/ConfigUpgradeSet.java index db5eed4ef..33fac069a 100644 --- a/src/main/java/org/stellar/sdk/xdr/ConfigUpgradeSet.java +++ b/src/main/java/org/stellar/sdk/xdr/ConfigUpgradeSet.java @@ -27,6 +27,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ConfigUpgradeSet implements XdrElement { + /** + * Value of the {@code updatedEntry} field. + * + * @param updatedEntry the {@code updatedEntry} field value + * @return the {@code updatedEntry} field value + */ private ConfigSettingEntry[] updatedEntry; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ConfigUpgradeSetKey.java b/src/main/java/org/stellar/sdk/xdr/ConfigUpgradeSetKey.java index 3e45e792d..0aa7c9a5b 100644 --- a/src/main/java/org/stellar/sdk/xdr/ConfigUpgradeSetKey.java +++ b/src/main/java/org/stellar/sdk/xdr/ConfigUpgradeSetKey.java @@ -27,7 +27,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ConfigUpgradeSetKey implements XdrElement { + /** + * Value of the {@code contractID} field. + * + * @param contractID the {@code contractID} field value + * @return the {@code contractID} field value + */ private ContractID contractID; + + /** + * Value of the {@code contentHash} field. + * + * @param contentHash the {@code contentHash} field value + * @return the {@code contentHash} field value + */ private Hash contentHash; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ContractCodeCostInputs.java b/src/main/java/org/stellar/sdk/xdr/ContractCodeCostInputs.java index 2c559de74..f783dc77c 100644 --- a/src/main/java/org/stellar/sdk/xdr/ContractCodeCostInputs.java +++ b/src/main/java/org/stellar/sdk/xdr/ContractCodeCostInputs.java @@ -36,16 +36,92 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ContractCodeCostInputs implements XdrElement { + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private ExtensionPoint ext; + + /** + * Value of the {@code nInstructions} field. + * + * @param nInstructions the {@code nInstructions} field value + * @return the {@code nInstructions} field value + */ private Uint32 nInstructions; + + /** + * Value of the {@code nFunctions} field. + * + * @param nFunctions the {@code nFunctions} field value + * @return the {@code nFunctions} field value + */ private Uint32 nFunctions; + + /** + * Value of the {@code nGlobals} field. + * + * @param nGlobals the {@code nGlobals} field value + * @return the {@code nGlobals} field value + */ private Uint32 nGlobals; + + /** + * Value of the {@code nTableEntries} field. + * + * @param nTableEntries the {@code nTableEntries} field value + * @return the {@code nTableEntries} field value + */ private Uint32 nTableEntries; + + /** + * Value of the {@code nTypes} field. + * + * @param nTypes the {@code nTypes} field value + * @return the {@code nTypes} field value + */ private Uint32 nTypes; + + /** + * Value of the {@code nDataSegments} field. + * + * @param nDataSegments the {@code nDataSegments} field value + * @return the {@code nDataSegments} field value + */ private Uint32 nDataSegments; + + /** + * Value of the {@code nElemSegments} field. + * + * @param nElemSegments the {@code nElemSegments} field value + * @return the {@code nElemSegments} field value + */ private Uint32 nElemSegments; + + /** + * Value of the {@code nImports} field. + * + * @param nImports the {@code nImports} field value + * @return the {@code nImports} field value + */ private Uint32 nImports; + + /** + * Value of the {@code nExports} field. + * + * @param nExports the {@code nExports} field value + * @return the {@code nExports} field value + */ private Uint32 nExports; + + /** + * Value of the {@code nDataSegmentBytes} field. + * + * @param nDataSegmentBytes the {@code nDataSegmentBytes} field value + * @return the {@code nDataSegmentBytes} field value + */ private Uint32 nDataSegmentBytes; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ContractCodeEntry.java b/src/main/java/org/stellar/sdk/xdr/ContractCodeEntry.java index 45f5efa55..ec3e53d30 100644 --- a/src/main/java/org/stellar/sdk/xdr/ContractCodeEntry.java +++ b/src/main/java/org/stellar/sdk/xdr/ContractCodeEntry.java @@ -39,8 +39,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ContractCodeEntry implements XdrElement { + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private ContractCodeEntryExt ext; + + /** + * Value of the {@code hash} field. + * + * @param hash the {@code hash} field value + * @return the {@code hash} field value + */ private Hash hash; + + /** + * Value of the {@code code} field. + * + * @param code the {@code code} field value + * @return the {@code code} field value + */ private byte[] code; public void encode(XdrDataOutputStream stream) throws IOException { @@ -139,7 +159,20 @@ static ContractCodeEntry fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class ContractCodeEntryExt implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; + + /** + * Value of the {@code v1} field. + * + * @param v1 the {@code v1} field value + * @return the {@code v1} field value + */ private ContractCodeEntryV1 v1; public void encode(XdrDataOutputStream stream) throws IOException { @@ -259,7 +292,20 @@ static ContractCodeEntryExt fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class ContractCodeEntryV1 implements XdrElement { + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private ExtensionPoint ext; + + /** + * Value of the {@code costInputs} field. + * + * @param costInputs the {@code costInputs} field value + * @return the {@code costInputs} field value + */ private ContractCodeCostInputs costInputs; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ContractCostParamEntry.java b/src/main/java/org/stellar/sdk/xdr/ContractCostParamEntry.java index d41e31597..09e44eead 100644 --- a/src/main/java/org/stellar/sdk/xdr/ContractCostParamEntry.java +++ b/src/main/java/org/stellar/sdk/xdr/ContractCostParamEntry.java @@ -30,8 +30,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ContractCostParamEntry implements XdrElement { + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private ExtensionPoint ext; + + /** + * Value of the {@code constTerm} field. + * + * @param constTerm the {@code constTerm} field value + * @return the {@code constTerm} field value + */ private Int64 constTerm; + + /** + * Value of the {@code linearTerm} field. + * + * @param linearTerm the {@code linearTerm} field value + * @return the {@code linearTerm} field value + */ private Int64 linearTerm; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ContractCostParams.java b/src/main/java/org/stellar/sdk/xdr/ContractCostParams.java index 1794d7a20..bece90406 100644 --- a/src/main/java/org/stellar/sdk/xdr/ContractCostParams.java +++ b/src/main/java/org/stellar/sdk/xdr/ContractCostParams.java @@ -22,6 +22,12 @@ @NoArgsConstructor @AllArgsConstructor public class ContractCostParams implements XdrElement { + /** + * Value of the {@code ContractCostParams} field. + * + * @param ContractCostParams the {@code ContractCostParams} field value + * @return the {@code ContractCostParams} field value + */ private ContractCostParamEntry[] ContractCostParams; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ContractDataEntry.java b/src/main/java/org/stellar/sdk/xdr/ContractDataEntry.java index b73249809..6d983a412 100644 --- a/src/main/java/org/stellar/sdk/xdr/ContractDataEntry.java +++ b/src/main/java/org/stellar/sdk/xdr/ContractDataEntry.java @@ -31,10 +31,44 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ContractDataEntry implements XdrElement { + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private ExtensionPoint ext; + + /** + * Value of the {@code contract} field. + * + * @param contract the {@code contract} field value + * @return the {@code contract} field value + */ private SCAddress contract; + + /** + * Value of the {@code key} field. + * + * @param key the {@code key} field value + * @return the {@code key} field value + */ private SCVal key; + + /** + * Value of the {@code durability} field. + * + * @param durability the {@code durability} field value + * @return the {@code durability} field value + */ private ContractDataDurability durability; + + /** + * Value of the {@code val} field. + * + * @param val the {@code val} field value + * @return the {@code val} field value + */ private SCVal val; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ContractEvent.java b/src/main/java/org/stellar/sdk/xdr/ContractEvent.java index 24c925328..2aef531b2 100644 --- a/src/main/java/org/stellar/sdk/xdr/ContractEvent.java +++ b/src/main/java/org/stellar/sdk/xdr/ContractEvent.java @@ -44,9 +44,36 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ContractEvent implements XdrElement { + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private ExtensionPoint ext; + + /** + * Value of the {@code contractID} field. + * + * @param contractID the {@code contractID} field value + * @return the {@code contractID} field value + */ private ContractID contractID; + + /** + * Value of the {@code type} field. + * + * @param type the {@code type} field value + * @return the {@code type} field value + */ private ContractEventType type; + + /** + * Value of the {@code body} field. + * + * @param body the {@code body} field value + * @return the {@code body} field value + */ private ContractEventBody body; public void encode(XdrDataOutputStream stream) throws IOException { @@ -145,7 +172,20 @@ static ContractEvent fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class ContractEventBody implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; + + /** + * Value of the {@code v0} field. + * + * @param v0 the {@code v0} field value + * @return the {@code v0} field value + */ private ContractEventV0 v0; public void encode(XdrDataOutputStream stream) throws IOException { @@ -248,7 +288,20 @@ static ContractEventBody fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class ContractEventV0 implements XdrElement { + /** + * Value of the {@code topics} field. + * + * @param topics the {@code topics} field value + * @return the {@code topics} field value + */ private SCVal[] topics; + + /** + * Value of the {@code data} field. + * + * @param data the {@code data} field value + * @return the {@code data} field value + */ private SCVal data; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ContractExecutable.java b/src/main/java/org/stellar/sdk/xdr/ContractExecutable.java index 7bfda663d..b4c071e25 100644 --- a/src/main/java/org/stellar/sdk/xdr/ContractExecutable.java +++ b/src/main/java/org/stellar/sdk/xdr/ContractExecutable.java @@ -30,7 +30,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ContractExecutable implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private ContractExecutableType discriminant; + + /** + * Value of the {@code wasm_hash} field. + * + * @param wasm_hash the {@code wasm_hash} field value + * @return the {@code wasm_hash} field value + */ private Hash wasm_hash; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ContractID.java b/src/main/java/org/stellar/sdk/xdr/ContractID.java index 898f182d3..401b90f6b 100644 --- a/src/main/java/org/stellar/sdk/xdr/ContractID.java +++ b/src/main/java/org/stellar/sdk/xdr/ContractID.java @@ -22,6 +22,12 @@ @NoArgsConstructor @AllArgsConstructor public class ContractID implements XdrElement { + /** + * Value of the {@code ContractID} field. + * + * @param ContractID the {@code ContractID} field value + * @return the {@code ContractID} field value + */ private Hash ContractID; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ContractIDPreimage.java b/src/main/java/org/stellar/sdk/xdr/ContractIDPreimage.java index dfeb8cbb4..3bd710869 100644 --- a/src/main/java/org/stellar/sdk/xdr/ContractIDPreimage.java +++ b/src/main/java/org/stellar/sdk/xdr/ContractIDPreimage.java @@ -34,8 +34,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ContractIDPreimage implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private ContractIDPreimageType discriminant; + + /** + * Value of the {@code fromAddress} field. + * + * @param fromAddress the {@code fromAddress} field value + * @return the {@code fromAddress} field value + */ private ContractIDPreimageFromAddress fromAddress; + + /** + * Value of the {@code fromAsset} field. + * + * @param fromAsset the {@code fromAsset} field value + * @return the {@code fromAsset} field value + */ private Asset fromAsset; public void encode(XdrDataOutputStream stream) throws IOException { @@ -156,7 +176,20 @@ static ContractIDPreimage fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class ContractIDPreimageFromAddress implements XdrElement { + /** + * Value of the {@code address} field. + * + * @param address the {@code address} field value + * @return the {@code address} field value + */ private SCAddress address; + + /** + * Value of the {@code salt} field. + * + * @param salt the {@code salt} field value + * @return the {@code salt} field value + */ private Uint256 salt; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/CreateAccountOp.java b/src/main/java/org/stellar/sdk/xdr/CreateAccountOp.java index 65ceb32a7..4351a3140 100644 --- a/src/main/java/org/stellar/sdk/xdr/CreateAccountOp.java +++ b/src/main/java/org/stellar/sdk/xdr/CreateAccountOp.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class CreateAccountOp implements XdrElement { + /** + * Value of the {@code destination} field. + * + * @param destination the {@code destination} field value + * @return the {@code destination} field value + */ private AccountID destination; + + /** + * Value of the {@code startingBalance} field. + * + * @param startingBalance the {@code startingBalance} field value + * @return the {@code startingBalance} field value + */ private Int64 startingBalance; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/CreateAccountResult.java b/src/main/java/org/stellar/sdk/xdr/CreateAccountResult.java index 5399ba050..5ad91adee 100644 --- a/src/main/java/org/stellar/sdk/xdr/CreateAccountResult.java +++ b/src/main/java/org/stellar/sdk/xdr/CreateAccountResult.java @@ -32,6 +32,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class CreateAccountResult implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private CreateAccountResultCode discriminant; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/CreateClaimableBalanceOp.java b/src/main/java/org/stellar/sdk/xdr/CreateClaimableBalanceOp.java index 449ee846c..8754e7a8c 100644 --- a/src/main/java/org/stellar/sdk/xdr/CreateClaimableBalanceOp.java +++ b/src/main/java/org/stellar/sdk/xdr/CreateClaimableBalanceOp.java @@ -30,8 +30,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class CreateClaimableBalanceOp implements XdrElement { + /** + * Value of the {@code asset} field. + * + * @param asset the {@code asset} field value + * @return the {@code asset} field value + */ private Asset asset; + + /** + * Value of the {@code amount} field. + * + * @param amount the {@code amount} field value + * @return the {@code amount} field value + */ private Int64 amount; + + /** + * Value of the {@code claimants} field. + * + * @param claimants the {@code claimants} field value + * @return the {@code claimants} field value + */ private Claimant[] claimants; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/CreateClaimableBalanceResult.java b/src/main/java/org/stellar/sdk/xdr/CreateClaimableBalanceResult.java index ce6e8094e..b277bbe63 100644 --- a/src/main/java/org/stellar/sdk/xdr/CreateClaimableBalanceResult.java +++ b/src/main/java/org/stellar/sdk/xdr/CreateClaimableBalanceResult.java @@ -35,7 +35,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class CreateClaimableBalanceResult implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private CreateClaimableBalanceResultCode discriminant; + + /** + * Value of the {@code balanceID} field. + * + * @param balanceID the {@code balanceID} field value + * @return the {@code balanceID} field value + */ private ClaimableBalanceID balanceID; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/CreateContractArgs.java b/src/main/java/org/stellar/sdk/xdr/CreateContractArgs.java index 89eaf538f..2abdfe37f 100644 --- a/src/main/java/org/stellar/sdk/xdr/CreateContractArgs.java +++ b/src/main/java/org/stellar/sdk/xdr/CreateContractArgs.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class CreateContractArgs implements XdrElement { + /** + * Value of the {@code contractIDPreimage} field. + * + * @param contractIDPreimage the {@code contractIDPreimage} field value + * @return the {@code contractIDPreimage} field value + */ private ContractIDPreimage contractIDPreimage; + + /** + * Value of the {@code executable} field. + * + * @param executable the {@code executable} field value + * @return the {@code executable} field value + */ private ContractExecutable executable; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/CreateContractArgsV2.java b/src/main/java/org/stellar/sdk/xdr/CreateContractArgsV2.java index 1b1593ed6..c8505aa1f 100644 --- a/src/main/java/org/stellar/sdk/xdr/CreateContractArgsV2.java +++ b/src/main/java/org/stellar/sdk/xdr/CreateContractArgsV2.java @@ -31,8 +31,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class CreateContractArgsV2 implements XdrElement { + /** + * Value of the {@code contractIDPreimage} field. + * + * @param contractIDPreimage the {@code contractIDPreimage} field value + * @return the {@code contractIDPreimage} field value + */ private ContractIDPreimage contractIDPreimage; + + /** + * Value of the {@code executable} field. + * + * @param executable the {@code executable} field value + * @return the {@code executable} field value + */ private ContractExecutable executable; + + /** + * Value of the {@code constructorArgs} field. + * + * @param constructorArgs the {@code constructorArgs} field value + * @return the {@code constructorArgs} field value + */ private SCVal[] constructorArgs; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/CreatePassiveSellOfferOp.java b/src/main/java/org/stellar/sdk/xdr/CreatePassiveSellOfferOp.java index 275b5a4e0..3e03790f0 100644 --- a/src/main/java/org/stellar/sdk/xdr/CreatePassiveSellOfferOp.java +++ b/src/main/java/org/stellar/sdk/xdr/CreatePassiveSellOfferOp.java @@ -30,9 +30,36 @@ @AllArgsConstructor @Builder(toBuilder = true) public class CreatePassiveSellOfferOp implements XdrElement { + /** + * Value of the {@code selling} field. + * + * @param selling the {@code selling} field value + * @return the {@code selling} field value + */ private Asset selling; + + /** + * Value of the {@code buying} field. + * + * @param buying the {@code buying} field value + * @return the {@code buying} field value + */ private Asset buying; + + /** + * Value of the {@code amount} field. + * + * @param amount the {@code amount} field value + * @return the {@code amount} field value + */ private Int64 amount; + + /** + * Value of the {@code price} field. + * + * @param price the {@code price} field value + * @return the {@code price} field value + */ private Price price; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/Curve25519Public.java b/src/main/java/org/stellar/sdk/xdr/Curve25519Public.java index b299116fa..8e70e406e 100644 --- a/src/main/java/org/stellar/sdk/xdr/Curve25519Public.java +++ b/src/main/java/org/stellar/sdk/xdr/Curve25519Public.java @@ -27,6 +27,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class Curve25519Public implements XdrElement { + /** + * Value of the {@code key} field. + * + * @param key the {@code key} field value + * @return the {@code key} field value + */ private byte[] key; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/Curve25519Secret.java b/src/main/java/org/stellar/sdk/xdr/Curve25519Secret.java index 6ad772b9f..86a41e69a 100644 --- a/src/main/java/org/stellar/sdk/xdr/Curve25519Secret.java +++ b/src/main/java/org/stellar/sdk/xdr/Curve25519Secret.java @@ -27,6 +27,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class Curve25519Secret implements XdrElement { + /** + * Value of the {@code key} field. + * + * @param key the {@code key} field value + * @return the {@code key} field value + */ private byte[] key; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/DataEntry.java b/src/main/java/org/stellar/sdk/xdr/DataEntry.java index 60bbc3657..96d4837bb 100644 --- a/src/main/java/org/stellar/sdk/xdr/DataEntry.java +++ b/src/main/java/org/stellar/sdk/xdr/DataEntry.java @@ -37,9 +37,36 @@ @AllArgsConstructor @Builder(toBuilder = true) public class DataEntry implements XdrElement { + /** + * Value of the {@code accountID} field. + * + * @param accountID the {@code accountID} field value + * @return the {@code accountID} field value + */ private AccountID accountID; + + /** + * Value of the {@code dataName} field. + * + * @param dataName the {@code dataName} field value + * @return the {@code dataName} field value + */ private String64 dataName; + + /** + * Value of the {@code dataValue} field. + * + * @param dataValue the {@code dataValue} field value + * @return the {@code dataValue} field value + */ private DataValue dataValue; + + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private DataEntryExt ext; public void encode(XdrDataOutputStream stream) throws IOException { @@ -123,6 +150,12 @@ static DataEntry fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class DataEntryExt implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/DataValue.java b/src/main/java/org/stellar/sdk/xdr/DataValue.java index a37664156..03e427d5e 100644 --- a/src/main/java/org/stellar/sdk/xdr/DataValue.java +++ b/src/main/java/org/stellar/sdk/xdr/DataValue.java @@ -21,6 +21,12 @@ @NoArgsConstructor @AllArgsConstructor public class DataValue implements XdrElement { + /** + * Value of the {@code DataValue} field. + * + * @param DataValue the {@code DataValue} field value + * @return the {@code DataValue} field value + */ private byte[] DataValue; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/DecoratedSignature.java b/src/main/java/org/stellar/sdk/xdr/DecoratedSignature.java index 0dd54961f..ba09fa002 100644 --- a/src/main/java/org/stellar/sdk/xdr/DecoratedSignature.java +++ b/src/main/java/org/stellar/sdk/xdr/DecoratedSignature.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class DecoratedSignature implements XdrElement { + /** + * Value of the {@code hint} field. + * + * @param hint the {@code hint} field value + * @return the {@code hint} field value + */ private SignatureHint hint; + + /** + * Value of the {@code signature} field. + * + * @param signature the {@code signature} field value + * @return the {@code signature} field value + */ private Signature signature; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/DependentTxCluster.java b/src/main/java/org/stellar/sdk/xdr/DependentTxCluster.java index 8c421bbb3..c3e0d9565 100644 --- a/src/main/java/org/stellar/sdk/xdr/DependentTxCluster.java +++ b/src/main/java/org/stellar/sdk/xdr/DependentTxCluster.java @@ -22,6 +22,12 @@ @NoArgsConstructor @AllArgsConstructor public class DependentTxCluster implements XdrElement { + /** + * Value of the {@code DependentTxCluster} field. + * + * @param DependentTxCluster the {@code DependentTxCluster} field value + * @return the {@code DependentTxCluster} field value + */ private TransactionEnvelope[] DependentTxCluster; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/DiagnosticEvent.java b/src/main/java/org/stellar/sdk/xdr/DiagnosticEvent.java index 5e2222db6..51af88238 100644 --- a/src/main/java/org/stellar/sdk/xdr/DiagnosticEvent.java +++ b/src/main/java/org/stellar/sdk/xdr/DiagnosticEvent.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class DiagnosticEvent implements XdrElement { + /** + * Value of the {@code inSuccessfulContractCall} field. + * + * @param inSuccessfulContractCall the {@code inSuccessfulContractCall} field value + * @return the {@code inSuccessfulContractCall} field value + */ private Boolean inSuccessfulContractCall; + + /** + * Value of the {@code event} field. + * + * @param event the {@code event} field value + * @return the {@code event} field value + */ private ContractEvent event; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/DontHave.java b/src/main/java/org/stellar/sdk/xdr/DontHave.java index 1bff05f97..4b9e81127 100644 --- a/src/main/java/org/stellar/sdk/xdr/DontHave.java +++ b/src/main/java/org/stellar/sdk/xdr/DontHave.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class DontHave implements XdrElement { + /** + * Value of the {@code type} field. + * + * @param type the {@code type} field value + * @return the {@code type} field value + */ private MessageType type; + + /** + * Value of the {@code reqHash} field. + * + * @param reqHash the {@code reqHash} field value + * @return the {@code reqHash} field value + */ private Uint256 reqHash; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/Duration.java b/src/main/java/org/stellar/sdk/xdr/Duration.java index 252179edc..80c154bd0 100644 --- a/src/main/java/org/stellar/sdk/xdr/Duration.java +++ b/src/main/java/org/stellar/sdk/xdr/Duration.java @@ -21,6 +21,12 @@ @NoArgsConstructor @AllArgsConstructor public class Duration implements XdrElement { + /** + * Value of the {@code Duration} field. + * + * @param Duration the {@code Duration} field value + * @return the {@code Duration} field value + */ private Uint64 Duration; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/EncodedLedgerKey.java b/src/main/java/org/stellar/sdk/xdr/EncodedLedgerKey.java index 52ccceb37..3583d6877 100644 --- a/src/main/java/org/stellar/sdk/xdr/EncodedLedgerKey.java +++ b/src/main/java/org/stellar/sdk/xdr/EncodedLedgerKey.java @@ -21,6 +21,12 @@ @NoArgsConstructor @AllArgsConstructor public class EncodedLedgerKey implements XdrElement { + /** + * Value of the {@code EncodedLedgerKey} field. + * + * @param EncodedLedgerKey the {@code EncodedLedgerKey} field value + * @return the {@code EncodedLedgerKey} field value + */ private byte[] EncodedLedgerKey; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/EncryptedBody.java b/src/main/java/org/stellar/sdk/xdr/EncryptedBody.java index 5f0d23fe2..b484dcd3f 100644 --- a/src/main/java/org/stellar/sdk/xdr/EncryptedBody.java +++ b/src/main/java/org/stellar/sdk/xdr/EncryptedBody.java @@ -21,6 +21,12 @@ @NoArgsConstructor @AllArgsConstructor public class EncryptedBody implements XdrElement { + /** + * Value of the {@code EncryptedBody} field. + * + * @param EncryptedBody the {@code EncryptedBody} field value + * @return the {@code EncryptedBody} field value + */ private byte[] EncryptedBody; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/EndSponsoringFutureReservesResult.java b/src/main/java/org/stellar/sdk/xdr/EndSponsoringFutureReservesResult.java index e4272ecf1..ef03bedc8 100644 --- a/src/main/java/org/stellar/sdk/xdr/EndSponsoringFutureReservesResult.java +++ b/src/main/java/org/stellar/sdk/xdr/EndSponsoringFutureReservesResult.java @@ -30,6 +30,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class EndSponsoringFutureReservesResult implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private EndSponsoringFutureReservesResultCode discriminant; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/EnvelopeType.java b/src/main/java/org/stellar/sdk/xdr/EnvelopeType.java index d3cbec0c1..4ba4832da 100644 --- a/src/main/java/org/stellar/sdk/xdr/EnvelopeType.java +++ b/src/main/java/org/stellar/sdk/xdr/EnvelopeType.java @@ -22,7 +22,8 @@ * ENVELOPE_TYPE_OP_ID = 6, * ENVELOPE_TYPE_POOL_REVOKE_OP_ID = 7, * ENVELOPE_TYPE_CONTRACT_ID = 8, - * ENVELOPE_TYPE_SOROBAN_AUTHORIZATION = 9 + * ENVELOPE_TYPE_SOROBAN_AUTHORIZATION = 9, + * ENVELOPE_TYPE_SOROBAN_AUTHORIZATION_WITH_ADDRESS = 10 * }; * */ @@ -36,7 +37,8 @@ public enum EnvelopeType implements XdrElement { ENVELOPE_TYPE_OP_ID(6), ENVELOPE_TYPE_POOL_REVOKE_OP_ID(7), ENVELOPE_TYPE_CONTRACT_ID(8), - ENVELOPE_TYPE_SOROBAN_AUTHORIZATION(9); + ENVELOPE_TYPE_SOROBAN_AUTHORIZATION(9), + ENVELOPE_TYPE_SOROBAN_AUTHORIZATION_WITH_ADDRESS(10); private final int value; @@ -72,6 +74,8 @@ public static EnvelopeType decode(XdrDataInputStream stream, int maxDepth) throw return ENVELOPE_TYPE_CONTRACT_ID; case 9: return ENVELOPE_TYPE_SOROBAN_AUTHORIZATION; + case 10: + return ENVELOPE_TYPE_SOROBAN_AUTHORIZATION_WITH_ADDRESS; default: throw new IllegalArgumentException("Unknown enum value: " + value); } @@ -128,6 +132,8 @@ Object toJsonObject() { return "contract_id"; case ENVELOPE_TYPE_SOROBAN_AUTHORIZATION: return "soroban_authorization"; + case ENVELOPE_TYPE_SOROBAN_AUTHORIZATION_WITH_ADDRESS: + return "soroban_authorization_with_address"; default: throw new IllegalArgumentException("Unknown enum value: " + this.value); } @@ -156,6 +162,8 @@ static EnvelopeType fromJsonObject(Object json) { return ENVELOPE_TYPE_CONTRACT_ID; case "soroban_authorization": return ENVELOPE_TYPE_SOROBAN_AUTHORIZATION; + case "soroban_authorization_with_address": + return ENVELOPE_TYPE_SOROBAN_AUTHORIZATION_WITH_ADDRESS; default: throw new IllegalArgumentException("Unknown JSON value: " + value); } diff --git a/src/main/java/org/stellar/sdk/xdr/Error.java b/src/main/java/org/stellar/sdk/xdr/Error.java index 5ec71c5ae..484bbf4b6 100644 --- a/src/main/java/org/stellar/sdk/xdr/Error.java +++ b/src/main/java/org/stellar/sdk/xdr/Error.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class Error implements XdrElement { + /** + * Value of the {@code code} field. + * + * @param code the {@code code} field value + * @return the {@code code} field value + */ private ErrorCode code; + + /** + * Value of the {@code msg} field. + * + * @param msg the {@code msg} field value + * @return the {@code msg} field value + */ private XdrString msg; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/EvictionIterator.java b/src/main/java/org/stellar/sdk/xdr/EvictionIterator.java index 635fc8318..6744c95c4 100644 --- a/src/main/java/org/stellar/sdk/xdr/EvictionIterator.java +++ b/src/main/java/org/stellar/sdk/xdr/EvictionIterator.java @@ -28,8 +28,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class EvictionIterator implements XdrElement { + /** + * Value of the {@code bucketListLevel} field. + * + * @param bucketListLevel the {@code bucketListLevel} field value + * @return the {@code bucketListLevel} field value + */ private Uint32 bucketListLevel; + + /** + * Value of the {@code isCurrBucket} field. + * + * @param isCurrBucket the {@code isCurrBucket} field value + * @return the {@code isCurrBucket} field value + */ private Boolean isCurrBucket; + + /** + * Value of the {@code bucketFileOffset} field. + * + * @param bucketFileOffset the {@code bucketFileOffset} field value + * @return the {@code bucketFileOffset} field value + */ private Uint64 bucketFileOffset; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ExtendFootprintTTLOp.java b/src/main/java/org/stellar/sdk/xdr/ExtendFootprintTTLOp.java index 6ceff6914..69fe40948 100644 --- a/src/main/java/org/stellar/sdk/xdr/ExtendFootprintTTLOp.java +++ b/src/main/java/org/stellar/sdk/xdr/ExtendFootprintTTLOp.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ExtendFootprintTTLOp implements XdrElement { + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private ExtensionPoint ext; + + /** + * Value of the {@code extendTo} field. + * + * @param extendTo the {@code extendTo} field value + * @return the {@code extendTo} field value + */ private Uint32 extendTo; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ExtendFootprintTTLResult.java b/src/main/java/org/stellar/sdk/xdr/ExtendFootprintTTLResult.java index cf915d9e7..cd13ff345 100644 --- a/src/main/java/org/stellar/sdk/xdr/ExtendFootprintTTLResult.java +++ b/src/main/java/org/stellar/sdk/xdr/ExtendFootprintTTLResult.java @@ -31,6 +31,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ExtendFootprintTTLResult implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private ExtendFootprintTTLResultCode discriminant; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ExtensionPoint.java b/src/main/java/org/stellar/sdk/xdr/ExtensionPoint.java index ccb95d989..a330aa333 100644 --- a/src/main/java/org/stellar/sdk/xdr/ExtensionPoint.java +++ b/src/main/java/org/stellar/sdk/xdr/ExtensionPoint.java @@ -27,6 +27,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ExtensionPoint implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/FeeBumpTransaction.java b/src/main/java/org/stellar/sdk/xdr/FeeBumpTransaction.java index 16e781ece..685593b30 100644 --- a/src/main/java/org/stellar/sdk/xdr/FeeBumpTransaction.java +++ b/src/main/java/org/stellar/sdk/xdr/FeeBumpTransaction.java @@ -40,9 +40,36 @@ @AllArgsConstructor @Builder(toBuilder = true) public class FeeBumpTransaction implements XdrElement { + /** + * Value of the {@code feeSource} field. + * + * @param feeSource the {@code feeSource} field value + * @return the {@code feeSource} field value + */ private MuxedAccount feeSource; + + /** + * Value of the {@code fee} field. + * + * @param fee the {@code fee} field value + * @return the {@code fee} field value + */ private Int64 fee; + + /** + * Value of the {@code innerTx} field. + * + * @param innerTx the {@code innerTx} field value + * @return the {@code innerTx} field value + */ private FeeBumpTransactionInnerTx innerTx; + + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private FeeBumpTransactionExt ext; public void encode(XdrDataOutputStream stream) throws IOException { @@ -127,7 +154,20 @@ static FeeBumpTransaction fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class FeeBumpTransactionInnerTx implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private EnvelopeType discriminant; + + /** + * Value of the {@code v1} field. + * + * @param v1 the {@code v1} field value + * @return the {@code v1} field value + */ private TransactionV1Envelope v1; public void encode(XdrDataOutputStream stream) throws IOException { @@ -231,6 +271,12 @@ static FeeBumpTransactionInnerTx fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class FeeBumpTransactionExt implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/FeeBumpTransactionEnvelope.java b/src/main/java/org/stellar/sdk/xdr/FeeBumpTransactionEnvelope.java index 87e9b5535..0d2f0b70c 100644 --- a/src/main/java/org/stellar/sdk/xdr/FeeBumpTransactionEnvelope.java +++ b/src/main/java/org/stellar/sdk/xdr/FeeBumpTransactionEnvelope.java @@ -31,7 +31,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class FeeBumpTransactionEnvelope implements XdrElement { + /** + * Value of the {@code tx} field. + * + * @param tx the {@code tx} field value + * @return the {@code tx} field value + */ private FeeBumpTransaction tx; + + /** + * Value of the {@code signatures} field. + * + * @param signatures the {@code signatures} field value + * @return the {@code signatures} field value + */ private DecoratedSignature[] signatures; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/FloodAdvert.java b/src/main/java/org/stellar/sdk/xdr/FloodAdvert.java index 1a79a29ec..837551754 100644 --- a/src/main/java/org/stellar/sdk/xdr/FloodAdvert.java +++ b/src/main/java/org/stellar/sdk/xdr/FloodAdvert.java @@ -27,6 +27,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class FloodAdvert implements XdrElement { + /** + * Value of the {@code txHashes} field. + * + * @param txHashes the {@code txHashes} field value + * @return the {@code txHashes} field value + */ private TxAdvertVector txHashes; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/FloodDemand.java b/src/main/java/org/stellar/sdk/xdr/FloodDemand.java index 37848dff2..8df7e1ed1 100644 --- a/src/main/java/org/stellar/sdk/xdr/FloodDemand.java +++ b/src/main/java/org/stellar/sdk/xdr/FloodDemand.java @@ -27,6 +27,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class FloodDemand implements XdrElement { + /** + * Value of the {@code txHashes} field. + * + * @param txHashes the {@code txHashes} field value + * @return the {@code txHashes} field value + */ private TxDemandVector txHashes; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/FreezeBypassTxs.java b/src/main/java/org/stellar/sdk/xdr/FreezeBypassTxs.java index fa879c7b0..c00888709 100644 --- a/src/main/java/org/stellar/sdk/xdr/FreezeBypassTxs.java +++ b/src/main/java/org/stellar/sdk/xdr/FreezeBypassTxs.java @@ -27,6 +27,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class FreezeBypassTxs implements XdrElement { + /** + * Value of the {@code txHashes} field. + * + * @param txHashes the {@code txHashes} field value + * @return the {@code txHashes} field value + */ private Hash[] txHashes; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/FreezeBypassTxsDelta.java b/src/main/java/org/stellar/sdk/xdr/FreezeBypassTxsDelta.java index 4e9f50ad4..88ddd7ff1 100644 --- a/src/main/java/org/stellar/sdk/xdr/FreezeBypassTxsDelta.java +++ b/src/main/java/org/stellar/sdk/xdr/FreezeBypassTxsDelta.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class FreezeBypassTxsDelta implements XdrElement { + /** + * Value of the {@code addTxs} field. + * + * @param addTxs the {@code addTxs} field value + * @return the {@code addTxs} field value + */ private Hash[] addTxs; + + /** + * Value of the {@code removeTxs} field. + * + * @param removeTxs the {@code removeTxs} field value + * @return the {@code removeTxs} field value + */ private Hash[] removeTxs; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/FrozenLedgerKeys.java b/src/main/java/org/stellar/sdk/xdr/FrozenLedgerKeys.java index 50dd314f1..d4092e978 100644 --- a/src/main/java/org/stellar/sdk/xdr/FrozenLedgerKeys.java +++ b/src/main/java/org/stellar/sdk/xdr/FrozenLedgerKeys.java @@ -27,6 +27,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class FrozenLedgerKeys implements XdrElement { + /** + * Value of the {@code keys} field. + * + * @param keys the {@code keys} field value + * @return the {@code keys} field value + */ private EncodedLedgerKey[] keys; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/FrozenLedgerKeysDelta.java b/src/main/java/org/stellar/sdk/xdr/FrozenLedgerKeysDelta.java index bc3120841..cd3eede38 100644 --- a/src/main/java/org/stellar/sdk/xdr/FrozenLedgerKeysDelta.java +++ b/src/main/java/org/stellar/sdk/xdr/FrozenLedgerKeysDelta.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class FrozenLedgerKeysDelta implements XdrElement { + /** + * Value of the {@code keysToFreeze} field. + * + * @param keysToFreeze the {@code keysToFreeze} field value + * @return the {@code keysToFreeze} field value + */ private EncodedLedgerKey[] keysToFreeze; + + /** + * Value of the {@code keysToUnfreeze} field. + * + * @param keysToUnfreeze the {@code keysToUnfreeze} field value + * @return the {@code keysToUnfreeze} field value + */ private EncodedLedgerKey[] keysToUnfreeze; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/GeneralizedTransactionSet.java b/src/main/java/org/stellar/sdk/xdr/GeneralizedTransactionSet.java index 48964723f..f8e5ef3af 100644 --- a/src/main/java/org/stellar/sdk/xdr/GeneralizedTransactionSet.java +++ b/src/main/java/org/stellar/sdk/xdr/GeneralizedTransactionSet.java @@ -29,7 +29,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class GeneralizedTransactionSet implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; + + /** + * Value of the {@code v1TxSet} field. + * + * @param v1TxSet the {@code v1TxSet} field value + * @return the {@code v1TxSet} field value + */ private TransactionSetV1 v1TxSet; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/Hash.java b/src/main/java/org/stellar/sdk/xdr/Hash.java index d85217682..e66e4b122 100644 --- a/src/main/java/org/stellar/sdk/xdr/Hash.java +++ b/src/main/java/org/stellar/sdk/xdr/Hash.java @@ -21,6 +21,12 @@ @NoArgsConstructor @AllArgsConstructor public class Hash implements XdrElement { + /** + * Value of the {@code Hash} field. + * + * @param Hash the {@code Hash} field value + * @return the {@code Hash} field value + */ private byte[] Hash; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/HashIDPreimage.java b/src/main/java/org/stellar/sdk/xdr/HashIDPreimage.java index 3c4636fba..d52169cd5 100644 --- a/src/main/java/org/stellar/sdk/xdr/HashIDPreimage.java +++ b/src/main/java/org/stellar/sdk/xdr/HashIDPreimage.java @@ -48,6 +48,15 @@ * uint32 signatureExpirationLedger; * SorobanAuthorizedInvocation invocation; * } sorobanAuthorization; + * case ENVELOPE_TYPE_SOROBAN_AUTHORIZATION_WITH_ADDRESS: + * struct + * { + * Hash networkID; + * int64 nonce; + * uint32 signatureExpirationLedger; + * SCAddress address; + * SorobanAuthorizedInvocation invocation; + * } sorobanAuthorizationWithAddress; * }; * */ @@ -56,12 +65,54 @@ @AllArgsConstructor @Builder(toBuilder = true) public class HashIDPreimage implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private EnvelopeType discriminant; + + /** + * Value of the {@code operationID} field. + * + * @param operationID the {@code operationID} field value + * @return the {@code operationID} field value + */ private HashIDPreimageOperationID operationID; + + /** + * Value of the {@code revokeID} field. + * + * @param revokeID the {@code revokeID} field value + * @return the {@code revokeID} field value + */ private HashIDPreimageRevokeID revokeID; + + /** + * Value of the {@code contractID} field. + * + * @param contractID the {@code contractID} field value + * @return the {@code contractID} field value + */ private HashIDPreimageContractID contractID; + + /** + * Value of the {@code sorobanAuthorization} field. + * + * @param sorobanAuthorization the {@code sorobanAuthorization} field value + * @return the {@code sorobanAuthorization} field value + */ private HashIDPreimageSorobanAuthorization sorobanAuthorization; + /** + * Value of the {@code sorobanAuthorizationWithAddress} field. + * + * @param sorobanAuthorizationWithAddress the {@code sorobanAuthorizationWithAddress} field value + * @return the {@code sorobanAuthorizationWithAddress} field value + */ + private HashIDPreimageSorobanAuthorizationWithAddress sorobanAuthorizationWithAddress; + public void encode(XdrDataOutputStream stream) throws IOException { stream.writeInt(discriminant.getValue()); switch (discriminant) { @@ -77,6 +128,9 @@ public void encode(XdrDataOutputStream stream) throws IOException { case ENVELOPE_TYPE_SOROBAN_AUTHORIZATION: sorobanAuthorization.encode(stream); break; + case ENVELOPE_TYPE_SOROBAN_AUTHORIZATION_WITH_ADDRESS: + sorobanAuthorizationWithAddress.encode(stream); + break; } } @@ -102,6 +156,10 @@ public static HashIDPreimage decode(XdrDataInputStream stream, int maxDepth) thr decodedHashIDPreimage.sorobanAuthorization = HashIDPreimageSorobanAuthorization.decode(stream, maxDepth); break; + case ENVELOPE_TYPE_SOROBAN_AUTHORIZATION_WITH_ADDRESS: + decodedHashIDPreimage.sorobanAuthorizationWithAddress = + HashIDPreimageSorobanAuthorizationWithAddress.decode(stream, maxDepth); + break; default: throw new IOException("Unknown discriminant value: " + discriminant); } @@ -154,6 +212,12 @@ Object toJsonObject() { jsonMap.put("soroban_authorization", sorobanAuthorization.toJsonObject()); return jsonMap; } + if (discriminant == EnvelopeType.ENVELOPE_TYPE_SOROBAN_AUTHORIZATION_WITH_ADDRESS) { + LinkedHashMap jsonMap = new LinkedHashMap<>(); + jsonMap.put( + "soroban_authorization_with_address", sorobanAuthorizationWithAddress.toJsonObject()); + return jsonMap; + } throw new IllegalArgumentException("Unknown discriminant: " + discriminant); } @@ -195,6 +259,14 @@ static HashIDPreimage fromJsonObject(Object json) { HashIDPreimageSorobanAuthorization.fromJsonObject(jsonMap.get("soroban_authorization")); return instance; } + if (key.equals("soroban_authorization_with_address")) { + HashIDPreimage instance = new HashIDPreimage(); + instance.discriminant = discriminant; + instance.sorobanAuthorizationWithAddress = + HashIDPreimageSorobanAuthorizationWithAddress.fromJsonObject( + jsonMap.get("soroban_authorization_with_address")); + return instance; + } throw new IllegalArgumentException("Unknown key '" + key + "' for HashIDPreimage"); } @@ -215,8 +287,28 @@ static HashIDPreimage fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class HashIDPreimageOperationID implements XdrElement { + /** + * Value of the {@code sourceAccount} field. + * + * @param sourceAccount the {@code sourceAccount} field value + * @return the {@code sourceAccount} field value + */ private AccountID sourceAccount; + + /** + * Value of the {@code seqNum} field. + * + * @param seqNum the {@code seqNum} field value + * @return the {@code seqNum} field value + */ private SequenceNumber seqNum; + + /** + * Value of the {@code opNum} field. + * + * @param opNum the {@code opNum} field value + * @return the {@code opNum} field value + */ private Uint32 opNum; public void encode(XdrDataOutputStream stream) throws IOException { @@ -301,10 +393,44 @@ static HashIDPreimageOperationID fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class HashIDPreimageRevokeID implements XdrElement { + /** + * Value of the {@code sourceAccount} field. + * + * @param sourceAccount the {@code sourceAccount} field value + * @return the {@code sourceAccount} field value + */ private AccountID sourceAccount; + + /** + * Value of the {@code seqNum} field. + * + * @param seqNum the {@code seqNum} field value + * @return the {@code seqNum} field value + */ private SequenceNumber seqNum; + + /** + * Value of the {@code opNum} field. + * + * @param opNum the {@code opNum} field value + * @return the {@code opNum} field value + */ private Uint32 opNum; + + /** + * Value of the {@code liquidityPoolID} field. + * + * @param liquidityPoolID the {@code liquidityPoolID} field value + * @return the {@code liquidityPoolID} field value + */ private PoolID liquidityPoolID; + + /** + * Value of the {@code asset} field. + * + * @param asset the {@code asset} field value + * @return the {@code asset} field value + */ private Asset asset; public void encode(XdrDataOutputStream stream) throws IOException { @@ -394,7 +520,20 @@ static HashIDPreimageRevokeID fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class HashIDPreimageContractID implements XdrElement { + /** + * Value of the {@code networkID} field. + * + * @param networkID the {@code networkID} field value + * @return the {@code networkID} field value + */ private Hash networkID; + + /** + * Value of the {@code contractIDPreimage} field. + * + * @param contractIDPreimage the {@code contractIDPreimage} field value + * @return the {@code contractIDPreimage} field value + */ private ContractIDPreimage contractIDPreimage; public void encode(XdrDataOutputStream stream) throws IOException { @@ -476,9 +615,36 @@ static HashIDPreimageContractID fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class HashIDPreimageSorobanAuthorization implements XdrElement { + /** + * Value of the {@code networkID} field. + * + * @param networkID the {@code networkID} field value + * @return the {@code networkID} field value + */ private Hash networkID; + + /** + * Value of the {@code nonce} field. + * + * @param nonce the {@code nonce} field value + * @return the {@code nonce} field value + */ private Int64 nonce; + + /** + * Value of the {@code signatureExpirationLedger} field. + * + * @param signatureExpirationLedger the {@code signatureExpirationLedger} field value + * @return the {@code signatureExpirationLedger} field value + */ private Uint32 signatureExpirationLedger; + + /** + * Value of the {@code invocation} field. + * + * @param invocation the {@code invocation} field value + * @return the {@code invocation} field value + */ private SorobanAuthorizedInvocation invocation; public void encode(XdrDataOutputStream stream) throws IOException { @@ -553,4 +719,145 @@ static HashIDPreimageSorobanAuthorization fromJsonObject(Object json) { return instance; } } + + /** + * HashIDPreimageSorobanAuthorizationWithAddress's original definition in the XDR file is: + * + *
+   * struct
+   *     {
+   *         Hash networkID;
+   *         int64 nonce;
+   *         uint32 signatureExpirationLedger;
+   *         SCAddress address;
+   *         SorobanAuthorizedInvocation invocation;
+   *     }
+   * 
+ */ + @Data + @NoArgsConstructor + @AllArgsConstructor + @Builder(toBuilder = true) + public static class HashIDPreimageSorobanAuthorizationWithAddress implements XdrElement { + /** + * Value of the {@code networkID} field. + * + * @param networkID the {@code networkID} field value + * @return the {@code networkID} field value + */ + private Hash networkID; + + /** + * Value of the {@code nonce} field. + * + * @param nonce the {@code nonce} field value + * @return the {@code nonce} field value + */ + private Int64 nonce; + + /** + * Value of the {@code signatureExpirationLedger} field. + * + * @param signatureExpirationLedger the {@code signatureExpirationLedger} field value + * @return the {@code signatureExpirationLedger} field value + */ + private Uint32 signatureExpirationLedger; + + /** + * Value of the {@code address} field. + * + * @param address the {@code address} field value + * @return the {@code address} field value + */ + private SCAddress address; + + /** + * Value of the {@code invocation} field. + * + * @param invocation the {@code invocation} field value + * @return the {@code invocation} field value + */ + private SorobanAuthorizedInvocation invocation; + + public void encode(XdrDataOutputStream stream) throws IOException { + networkID.encode(stream); + nonce.encode(stream); + signatureExpirationLedger.encode(stream); + address.encode(stream); + invocation.encode(stream); + } + + public static HashIDPreimageSorobanAuthorizationWithAddress decode( + XdrDataInputStream stream, int maxDepth) throws IOException { + if (maxDepth <= 0) { + throw new IOException("Maximum decoding depth reached"); + } + maxDepth -= 1; + HashIDPreimageSorobanAuthorizationWithAddress + decodedHashIDPreimageSorobanAuthorizationWithAddress = + new HashIDPreimageSorobanAuthorizationWithAddress(); + decodedHashIDPreimageSorobanAuthorizationWithAddress.networkID = + Hash.decode(stream, maxDepth); + decodedHashIDPreimageSorobanAuthorizationWithAddress.nonce = Int64.decode(stream, maxDepth); + decodedHashIDPreimageSorobanAuthorizationWithAddress.signatureExpirationLedger = + Uint32.decode(stream, maxDepth); + decodedHashIDPreimageSorobanAuthorizationWithAddress.address = + SCAddress.decode(stream, maxDepth); + decodedHashIDPreimageSorobanAuthorizationWithAddress.invocation = + SorobanAuthorizedInvocation.decode(stream, maxDepth); + return decodedHashIDPreimageSorobanAuthorizationWithAddress; + } + + public static HashIDPreimageSorobanAuthorizationWithAddress decode(XdrDataInputStream stream) + throws IOException { + return decode(stream, XdrDataInputStream.DEFAULT_MAX_DEPTH); + } + + public static HashIDPreimageSorobanAuthorizationWithAddress fromXdrBase64(String xdr) + throws IOException { + byte[] bytes = Base64Factory.getInstance().decode(xdr); + return fromXdrByteArray(bytes); + } + + public static HashIDPreimageSorobanAuthorizationWithAddress fromXdrByteArray(byte[] xdr) + throws IOException { + ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(xdr); + XdrDataInputStream xdrDataInputStream = new XdrDataInputStream(byteArrayInputStream); + xdrDataInputStream.setMaxInputLen(xdr.length); + return decode(xdrDataInputStream); + } + + @Override + public String toJson() { + return XdrElement.gson.toJson(toJsonObject()); + } + + public static HashIDPreimageSorobanAuthorizationWithAddress fromJson(String json) { + return fromJsonObject(XdrElement.gson.fromJson(json, Object.class)); + } + + Object toJsonObject() { + LinkedHashMap jsonMap = new LinkedHashMap<>(); + jsonMap.put("network_id", networkID.toJsonObject()); + jsonMap.put("nonce", nonce.toJsonObject()); + jsonMap.put("signature_expiration_ledger", signatureExpirationLedger.toJsonObject()); + jsonMap.put("address", address.toJsonObject()); + jsonMap.put("invocation", invocation.toJsonObject()); + return jsonMap; + } + + @SuppressWarnings("unchecked") + static HashIDPreimageSorobanAuthorizationWithAddress fromJsonObject(Object json) { + java.util.Map jsonMap = (java.util.Map) json; + HashIDPreimageSorobanAuthorizationWithAddress instance = + new HashIDPreimageSorobanAuthorizationWithAddress(); + instance.networkID = Hash.fromJsonObject(jsonMap.get("network_id")); + instance.nonce = Int64.fromJsonObject(jsonMap.get("nonce")); + instance.signatureExpirationLedger = + Uint32.fromJsonObject(jsonMap.get("signature_expiration_ledger")); + instance.address = SCAddress.fromJsonObject(jsonMap.get("address")); + instance.invocation = SorobanAuthorizedInvocation.fromJsonObject(jsonMap.get("invocation")); + return instance; + } + } } diff --git a/src/main/java/org/stellar/sdk/xdr/Hello.java b/src/main/java/org/stellar/sdk/xdr/Hello.java index 980b50531..f45a0d7ba 100644 --- a/src/main/java/org/stellar/sdk/xdr/Hello.java +++ b/src/main/java/org/stellar/sdk/xdr/Hello.java @@ -35,14 +35,76 @@ @AllArgsConstructor @Builder(toBuilder = true) public class Hello implements XdrElement { + /** + * Value of the {@code ledgerVersion} field. + * + * @param ledgerVersion the {@code ledgerVersion} field value + * @return the {@code ledgerVersion} field value + */ private Uint32 ledgerVersion; + + /** + * Value of the {@code overlayVersion} field. + * + * @param overlayVersion the {@code overlayVersion} field value + * @return the {@code overlayVersion} field value + */ private Uint32 overlayVersion; + + /** + * Value of the {@code overlayMinVersion} field. + * + * @param overlayMinVersion the {@code overlayMinVersion} field value + * @return the {@code overlayMinVersion} field value + */ private Uint32 overlayMinVersion; + + /** + * Value of the {@code networkID} field. + * + * @param networkID the {@code networkID} field value + * @return the {@code networkID} field value + */ private Hash networkID; + + /** + * Value of the {@code versionStr} field. + * + * @param versionStr the {@code versionStr} field value + * @return the {@code versionStr} field value + */ private XdrString versionStr; + + /** + * Value of the {@code listeningPort} field. + * + * @param listeningPort the {@code listeningPort} field value + * @return the {@code listeningPort} field value + */ private Integer listeningPort; + + /** + * Value of the {@code peerID} field. + * + * @param peerID the {@code peerID} field value + * @return the {@code peerID} field value + */ private NodeID peerID; + + /** + * Value of the {@code cert} field. + * + * @param cert the {@code cert} field value + * @return the {@code cert} field value + */ private AuthCert cert; + + /** + * Value of the {@code nonce} field. + * + * @param nonce the {@code nonce} field value + * @return the {@code nonce} field value + */ private Uint256 nonce; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/HmacSha256Key.java b/src/main/java/org/stellar/sdk/xdr/HmacSha256Key.java index 1247b299a..5b5d5d578 100644 --- a/src/main/java/org/stellar/sdk/xdr/HmacSha256Key.java +++ b/src/main/java/org/stellar/sdk/xdr/HmacSha256Key.java @@ -27,6 +27,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class HmacSha256Key implements XdrElement { + /** + * Value of the {@code key} field. + * + * @param key the {@code key} field value + * @return the {@code key} field value + */ private byte[] key; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/HmacSha256Mac.java b/src/main/java/org/stellar/sdk/xdr/HmacSha256Mac.java index 2f0d02d27..b3b5b25c0 100644 --- a/src/main/java/org/stellar/sdk/xdr/HmacSha256Mac.java +++ b/src/main/java/org/stellar/sdk/xdr/HmacSha256Mac.java @@ -27,6 +27,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class HmacSha256Mac implements XdrElement { + /** + * Value of the {@code mac} field. + * + * @param mac the {@code mac} field value + * @return the {@code mac} field value + */ private byte[] mac; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/HostFunction.java b/src/main/java/org/stellar/sdk/xdr/HostFunction.java index f90603a17..cbd42326f 100644 --- a/src/main/java/org/stellar/sdk/xdr/HostFunction.java +++ b/src/main/java/org/stellar/sdk/xdr/HostFunction.java @@ -34,10 +34,44 @@ @AllArgsConstructor @Builder(toBuilder = true) public class HostFunction implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private HostFunctionType discriminant; + + /** + * Value of the {@code invokeContract} field. + * + * @param invokeContract the {@code invokeContract} field value + * @return the {@code invokeContract} field value + */ private InvokeContractArgs invokeContract; + + /** + * Value of the {@code createContract} field. + * + * @param createContract the {@code createContract} field value + * @return the {@code createContract} field value + */ private CreateContractArgs createContract; + + /** + * Value of the {@code wasm} field. + * + * @param wasm the {@code wasm} field value + * @return the {@code wasm} field value + */ private byte[] wasm; + + /** + * Value of the {@code createContractV2} field. + * + * @param createContractV2 the {@code createContractV2} field value + * @return the {@code createContractV2} field value + */ private CreateContractArgsV2 createContractV2; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/HotArchiveBucketEntry.java b/src/main/java/org/stellar/sdk/xdr/HotArchiveBucketEntry.java index aa55d2aea..9858bddc2 100644 --- a/src/main/java/org/stellar/sdk/xdr/HotArchiveBucketEntry.java +++ b/src/main/java/org/stellar/sdk/xdr/HotArchiveBucketEntry.java @@ -33,9 +33,36 @@ @AllArgsConstructor @Builder(toBuilder = true) public class HotArchiveBucketEntry implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private HotArchiveBucketEntryType discriminant; + + /** + * Value of the {@code archivedEntry} field. + * + * @param archivedEntry the {@code archivedEntry} field value + * @return the {@code archivedEntry} field value + */ private LedgerEntry archivedEntry; + + /** + * Value of the {@code key} field. + * + * @param key the {@code key} field value + * @return the {@code key} field value + */ private LedgerKey key; + + /** + * Value of the {@code metaEntry} field. + * + * @param metaEntry the {@code metaEntry} field value + * @return the {@code metaEntry} field value + */ private BucketMetadata metaEntry; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/InflationPayout.java b/src/main/java/org/stellar/sdk/xdr/InflationPayout.java index f4aaf74e4..bed62eb17 100644 --- a/src/main/java/org/stellar/sdk/xdr/InflationPayout.java +++ b/src/main/java/org/stellar/sdk/xdr/InflationPayout.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class InflationPayout implements XdrElement { + /** + * Value of the {@code destination} field. + * + * @param destination the {@code destination} field value + * @return the {@code destination} field value + */ private AccountID destination; + + /** + * Value of the {@code amount} field. + * + * @param amount the {@code amount} field value + * @return the {@code amount} field value + */ private Int64 amount; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/InflationResult.java b/src/main/java/org/stellar/sdk/xdr/InflationResult.java index c639a1df0..f3d7d348b 100644 --- a/src/main/java/org/stellar/sdk/xdr/InflationResult.java +++ b/src/main/java/org/stellar/sdk/xdr/InflationResult.java @@ -31,7 +31,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class InflationResult implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private InflationResultCode discriminant; + + /** + * Value of the {@code payouts} field. + * + * @param payouts the {@code payouts} field value + * @return the {@code payouts} field value + */ private InflationPayout[] payouts; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/InnerTransactionResult.java b/src/main/java/org/stellar/sdk/xdr/InnerTransactionResult.java index 015ce549b..17067b5fa 100644 --- a/src/main/java/org/stellar/sdk/xdr/InnerTransactionResult.java +++ b/src/main/java/org/stellar/sdk/xdr/InnerTransactionResult.java @@ -64,8 +64,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class InnerTransactionResult implements XdrElement { + /** + * Value of the {@code feeCharged} field. + * + * @param feeCharged the {@code feeCharged} field value + * @return the {@code feeCharged} field value + */ private Int64 feeCharged; + + /** + * Value of the {@code result} field. + * + * @param result the {@code result} field value + * @return the {@code result} field value + */ private InnerTransactionResultResult result; + + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private InnerTransactionResultExt ext; public void encode(XdrDataOutputStream stream) throws IOException { @@ -166,7 +186,20 @@ static InnerTransactionResult fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class InnerTransactionResultResult implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private TransactionResultCode discriminant; + + /** + * Value of the {@code results} field. + * + * @param results the {@code results} field value + * @return the {@code results} field value + */ private OperationResult[] results; public void encode(XdrDataOutputStream stream) throws IOException { @@ -423,6 +456,12 @@ static InnerTransactionResultResult fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class InnerTransactionResultExt implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/InnerTransactionResultPair.java b/src/main/java/org/stellar/sdk/xdr/InnerTransactionResultPair.java index d843befd1..15cee82e1 100644 --- a/src/main/java/org/stellar/sdk/xdr/InnerTransactionResultPair.java +++ b/src/main/java/org/stellar/sdk/xdr/InnerTransactionResultPair.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class InnerTransactionResultPair implements XdrElement { + /** + * Value of the {@code transactionHash} field. + * + * @param transactionHash the {@code transactionHash} field value + * @return the {@code transactionHash} field value + */ private Hash transactionHash; + + /** + * Value of the {@code result} field. + * + * @param result the {@code result} field value + * @return the {@code result} field value + */ private InnerTransactionResult result; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/Int128Parts.java b/src/main/java/org/stellar/sdk/xdr/Int128Parts.java index c85a2d56a..d42d64f6b 100644 --- a/src/main/java/org/stellar/sdk/xdr/Int128Parts.java +++ b/src/main/java/org/stellar/sdk/xdr/Int128Parts.java @@ -27,7 +27,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class Int128Parts implements XdrElement { + /** + * Value of the {@code hi} field. + * + * @param hi the {@code hi} field value + * @return the {@code hi} field value + */ private Int64 hi; + + /** + * Value of the {@code lo} field. + * + * @param lo the {@code lo} field value + * @return the {@code lo} field value + */ private Uint64 lo; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/Int256Parts.java b/src/main/java/org/stellar/sdk/xdr/Int256Parts.java index 9b5bc9f49..1d080ab8a 100644 --- a/src/main/java/org/stellar/sdk/xdr/Int256Parts.java +++ b/src/main/java/org/stellar/sdk/xdr/Int256Parts.java @@ -29,9 +29,36 @@ @AllArgsConstructor @Builder(toBuilder = true) public class Int256Parts implements XdrElement { + /** + * Value of the {@code hi_hi} field. + * + * @param hi_hi the {@code hi_hi} field value + * @return the {@code hi_hi} field value + */ private Int64 hi_hi; + + /** + * Value of the {@code hi_lo} field. + * + * @param hi_lo the {@code hi_lo} field value + * @return the {@code hi_lo} field value + */ private Uint64 hi_lo; + + /** + * Value of the {@code lo_hi} field. + * + * @param lo_hi the {@code lo_hi} field value + * @return the {@code lo_hi} field value + */ private Uint64 lo_hi; + + /** + * Value of the {@code lo_lo} field. + * + * @param lo_lo the {@code lo_lo} field value + * @return the {@code lo_lo} field value + */ private Uint64 lo_lo; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/Int32.java b/src/main/java/org/stellar/sdk/xdr/Int32.java index b834b7fc4..33528ee27 100644 --- a/src/main/java/org/stellar/sdk/xdr/Int32.java +++ b/src/main/java/org/stellar/sdk/xdr/Int32.java @@ -21,6 +21,12 @@ @NoArgsConstructor @AllArgsConstructor public class Int32 implements XdrElement { + /** + * Value of the {@code int32} field. + * + * @param int32 the {@code int32} field value + * @return the {@code int32} field value + */ private Integer int32; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/Int64.java b/src/main/java/org/stellar/sdk/xdr/Int64.java index fd4d23a8a..8116b0b26 100644 --- a/src/main/java/org/stellar/sdk/xdr/Int64.java +++ b/src/main/java/org/stellar/sdk/xdr/Int64.java @@ -21,6 +21,12 @@ @NoArgsConstructor @AllArgsConstructor public class Int64 implements XdrElement { + /** + * Value of the {@code int64} field. + * + * @param int64 the {@code int64} field value + * @return the {@code int64} field value + */ private Long int64; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/InvokeContractArgs.java b/src/main/java/org/stellar/sdk/xdr/InvokeContractArgs.java index e7676001e..7e626afa8 100644 --- a/src/main/java/org/stellar/sdk/xdr/InvokeContractArgs.java +++ b/src/main/java/org/stellar/sdk/xdr/InvokeContractArgs.java @@ -29,8 +29,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class InvokeContractArgs implements XdrElement { + /** + * Value of the {@code contractAddress} field. + * + * @param contractAddress the {@code contractAddress} field value + * @return the {@code contractAddress} field value + */ private SCAddress contractAddress; + + /** + * Value of the {@code functionName} field. + * + * @param functionName the {@code functionName} field value + * @return the {@code functionName} field value + */ private SCSymbol functionName; + + /** + * Value of the {@code args} field. + * + * @param args the {@code args} field value + * @return the {@code args} field value + */ private SCVal[] args; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/InvokeHostFunctionOp.java b/src/main/java/org/stellar/sdk/xdr/InvokeHostFunctionOp.java index 3aee30725..68f5a6c72 100644 --- a/src/main/java/org/stellar/sdk/xdr/InvokeHostFunctionOp.java +++ b/src/main/java/org/stellar/sdk/xdr/InvokeHostFunctionOp.java @@ -31,7 +31,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class InvokeHostFunctionOp implements XdrElement { + /** + * Value of the {@code hostFunction} field. + * + * @param hostFunction the {@code hostFunction} field value + * @return the {@code hostFunction} field value + */ private HostFunction hostFunction; + + /** + * Value of the {@code auth} field. + * + * @param auth the {@code auth} field value + * @return the {@code auth} field value + */ private SorobanAuthorizationEntry[] auth; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/InvokeHostFunctionResult.java b/src/main/java/org/stellar/sdk/xdr/InvokeHostFunctionResult.java index 1e9d9a335..e37c0f7f5 100644 --- a/src/main/java/org/stellar/sdk/xdr/InvokeHostFunctionResult.java +++ b/src/main/java/org/stellar/sdk/xdr/InvokeHostFunctionResult.java @@ -34,7 +34,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class InvokeHostFunctionResult implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private InvokeHostFunctionResultCode discriminant; + + /** + * Value of the {@code success} field. + * + * @param success the {@code success} field value + * @return the {@code success} field value + */ private Hash success; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/InvokeHostFunctionSuccessPreImage.java b/src/main/java/org/stellar/sdk/xdr/InvokeHostFunctionSuccessPreImage.java index 0e93d88a7..d2e241000 100644 --- a/src/main/java/org/stellar/sdk/xdr/InvokeHostFunctionSuccessPreImage.java +++ b/src/main/java/org/stellar/sdk/xdr/InvokeHostFunctionSuccessPreImage.java @@ -29,7 +29,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class InvokeHostFunctionSuccessPreImage implements XdrElement { + /** + * Value of the {@code returnValue} field. + * + * @param returnValue the {@code returnValue} field value + * @return the {@code returnValue} field value + */ private SCVal returnValue; + + /** + * Value of the {@code events} field. + * + * @param events the {@code events} field value + * @return the {@code events} field value + */ private ContractEvent[] events; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/LedgerBounds.java b/src/main/java/org/stellar/sdk/xdr/LedgerBounds.java index aaa034f45..75573ee2f 100644 --- a/src/main/java/org/stellar/sdk/xdr/LedgerBounds.java +++ b/src/main/java/org/stellar/sdk/xdr/LedgerBounds.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class LedgerBounds implements XdrElement { + /** + * Value of the {@code minLedger} field. + * + * @param minLedger the {@code minLedger} field value + * @return the {@code minLedger} field value + */ private Uint32 minLedger; + + /** + * Value of the {@code maxLedger} field. + * + * @param maxLedger the {@code maxLedger} field value + * @return the {@code maxLedger} field value + */ private Uint32 maxLedger; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/LedgerCloseMeta.java b/src/main/java/org/stellar/sdk/xdr/LedgerCloseMeta.java index 867525f07..def269f87 100644 --- a/src/main/java/org/stellar/sdk/xdr/LedgerCloseMeta.java +++ b/src/main/java/org/stellar/sdk/xdr/LedgerCloseMeta.java @@ -32,9 +32,36 @@ @AllArgsConstructor @Builder(toBuilder = true) public class LedgerCloseMeta implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; + + /** + * Value of the {@code v0} field. + * + * @param v0 the {@code v0} field value + * @return the {@code v0} field value + */ private LedgerCloseMetaV0 v0; + + /** + * Value of the {@code v1} field. + * + * @param v1 the {@code v1} field value + * @return the {@code v1} field value + */ private LedgerCloseMetaV1 v1; + + /** + * Value of the {@code v2} field. + * + * @param v2 the {@code v2} field value + * @return the {@code v2} field value + */ private LedgerCloseMetaV2 v2; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/LedgerCloseMetaBatch.java b/src/main/java/org/stellar/sdk/xdr/LedgerCloseMetaBatch.java index 34c01ea51..059426ccd 100644 --- a/src/main/java/org/stellar/sdk/xdr/LedgerCloseMetaBatch.java +++ b/src/main/java/org/stellar/sdk/xdr/LedgerCloseMetaBatch.java @@ -35,8 +35,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class LedgerCloseMetaBatch implements XdrElement { + /** + * Value of the {@code startSequence} field. + * + * @param startSequence the {@code startSequence} field value + * @return the {@code startSequence} field value + */ private Uint32 startSequence; + + /** + * Value of the {@code endSequence} field. + * + * @param endSequence the {@code endSequence} field value + * @return the {@code endSequence} field value + */ private Uint32 endSequence; + + /** + * Value of the {@code ledgerCloseMetas} field. + * + * @param ledgerCloseMetas the {@code ledgerCloseMetas} field value + * @return the {@code ledgerCloseMetas} field value + */ private LedgerCloseMeta[] ledgerCloseMetas; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/LedgerCloseMetaExt.java b/src/main/java/org/stellar/sdk/xdr/LedgerCloseMetaExt.java index 370ac824d..b514ec220 100644 --- a/src/main/java/org/stellar/sdk/xdr/LedgerCloseMetaExt.java +++ b/src/main/java/org/stellar/sdk/xdr/LedgerCloseMetaExt.java @@ -30,7 +30,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class LedgerCloseMetaExt implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; + + /** + * Value of the {@code v1} field. + * + * @param v1 the {@code v1} field value + * @return the {@code v1} field value + */ private LedgerCloseMetaExtV1 v1; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/LedgerCloseMetaExtV1.java b/src/main/java/org/stellar/sdk/xdr/LedgerCloseMetaExtV1.java index 5d44e64d7..59195e1e3 100644 --- a/src/main/java/org/stellar/sdk/xdr/LedgerCloseMetaExtV1.java +++ b/src/main/java/org/stellar/sdk/xdr/LedgerCloseMetaExtV1.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class LedgerCloseMetaExtV1 implements XdrElement { + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private ExtensionPoint ext; + + /** + * Value of the {@code sorobanFeeWrite1KB} field. + * + * @param sorobanFeeWrite1KB the {@code sorobanFeeWrite1KB} field value + * @return the {@code sorobanFeeWrite1KB} field value + */ private Int64 sorobanFeeWrite1KB; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/LedgerCloseMetaV0.java b/src/main/java/org/stellar/sdk/xdr/LedgerCloseMetaV0.java index a087db7e2..c59647722 100644 --- a/src/main/java/org/stellar/sdk/xdr/LedgerCloseMetaV0.java +++ b/src/main/java/org/stellar/sdk/xdr/LedgerCloseMetaV0.java @@ -41,10 +41,44 @@ @AllArgsConstructor @Builder(toBuilder = true) public class LedgerCloseMetaV0 implements XdrElement { + /** + * Value of the {@code ledgerHeader} field. + * + * @param ledgerHeader the {@code ledgerHeader} field value + * @return the {@code ledgerHeader} field value + */ private LedgerHeaderHistoryEntry ledgerHeader; + + /** + * Value of the {@code txSet} field. + * + * @param txSet the {@code txSet} field value + * @return the {@code txSet} field value + */ private TransactionSet txSet; + + /** + * Value of the {@code txProcessing} field. + * + * @param txProcessing the {@code txProcessing} field value + * @return the {@code txProcessing} field value + */ private TransactionResultMeta[] txProcessing; + + /** + * Value of the {@code upgradesProcessing} field. + * + * @param upgradesProcessing the {@code upgradesProcessing} field value + * @return the {@code upgradesProcessing} field value + */ private UpgradeEntryMeta[] upgradesProcessing; + + /** + * Value of the {@code scpInfo} field. + * + * @param scpInfo the {@code scpInfo} field value + * @return the {@code scpInfo} field value + */ private SCPHistoryEntry[] scpInfo; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/LedgerCloseMetaV1.java b/src/main/java/org/stellar/sdk/xdr/LedgerCloseMetaV1.java index 1865d82eb..6bc4a6f93 100644 --- a/src/main/java/org/stellar/sdk/xdr/LedgerCloseMetaV1.java +++ b/src/main/java/org/stellar/sdk/xdr/LedgerCloseMetaV1.java @@ -53,14 +53,76 @@ @AllArgsConstructor @Builder(toBuilder = true) public class LedgerCloseMetaV1 implements XdrElement { + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private LedgerCloseMetaExt ext; + + /** + * Value of the {@code ledgerHeader} field. + * + * @param ledgerHeader the {@code ledgerHeader} field value + * @return the {@code ledgerHeader} field value + */ private LedgerHeaderHistoryEntry ledgerHeader; + + /** + * Value of the {@code txSet} field. + * + * @param txSet the {@code txSet} field value + * @return the {@code txSet} field value + */ private GeneralizedTransactionSet txSet; + + /** + * Value of the {@code txProcessing} field. + * + * @param txProcessing the {@code txProcessing} field value + * @return the {@code txProcessing} field value + */ private TransactionResultMeta[] txProcessing; + + /** + * Value of the {@code upgradesProcessing} field. + * + * @param upgradesProcessing the {@code upgradesProcessing} field value + * @return the {@code upgradesProcessing} field value + */ private UpgradeEntryMeta[] upgradesProcessing; + + /** + * Value of the {@code scpInfo} field. + * + * @param scpInfo the {@code scpInfo} field value + * @return the {@code scpInfo} field value + */ private SCPHistoryEntry[] scpInfo; + + /** + * Value of the {@code totalByteSizeOfLiveSorobanState} field. + * + * @param totalByteSizeOfLiveSorobanState the {@code totalByteSizeOfLiveSorobanState} field value + * @return the {@code totalByteSizeOfLiveSorobanState} field value + */ private Uint64 totalByteSizeOfLiveSorobanState; + + /** + * Value of the {@code evictedKeys} field. + * + * @param evictedKeys the {@code evictedKeys} field value + * @return the {@code evictedKeys} field value + */ private LedgerKey[] evictedKeys; + + /** + * Value of the {@code unused} field. + * + * @param unused the {@code unused} field value + * @return the {@code unused} field value + */ private LedgerEntry[] unused; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/LedgerCloseMetaV2.java b/src/main/java/org/stellar/sdk/xdr/LedgerCloseMetaV2.java index eba6a79c9..3a8b0d403 100644 --- a/src/main/java/org/stellar/sdk/xdr/LedgerCloseMetaV2.java +++ b/src/main/java/org/stellar/sdk/xdr/LedgerCloseMetaV2.java @@ -50,13 +50,68 @@ @AllArgsConstructor @Builder(toBuilder = true) public class LedgerCloseMetaV2 implements XdrElement { + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private LedgerCloseMetaExt ext; + + /** + * Value of the {@code ledgerHeader} field. + * + * @param ledgerHeader the {@code ledgerHeader} field value + * @return the {@code ledgerHeader} field value + */ private LedgerHeaderHistoryEntry ledgerHeader; + + /** + * Value of the {@code txSet} field. + * + * @param txSet the {@code txSet} field value + * @return the {@code txSet} field value + */ private GeneralizedTransactionSet txSet; + + /** + * Value of the {@code txProcessing} field. + * + * @param txProcessing the {@code txProcessing} field value + * @return the {@code txProcessing} field value + */ private TransactionResultMetaV1[] txProcessing; + + /** + * Value of the {@code upgradesProcessing} field. + * + * @param upgradesProcessing the {@code upgradesProcessing} field value + * @return the {@code upgradesProcessing} field value + */ private UpgradeEntryMeta[] upgradesProcessing; + + /** + * Value of the {@code scpInfo} field. + * + * @param scpInfo the {@code scpInfo} field value + * @return the {@code scpInfo} field value + */ private SCPHistoryEntry[] scpInfo; + + /** + * Value of the {@code totalByteSizeOfLiveSorobanState} field. + * + * @param totalByteSizeOfLiveSorobanState the {@code totalByteSizeOfLiveSorobanState} field value + * @return the {@code totalByteSizeOfLiveSorobanState} field value + */ private Uint64 totalByteSizeOfLiveSorobanState; + + /** + * Value of the {@code evictedKeys} field. + * + * @param evictedKeys the {@code evictedKeys} field value + * @return the {@code evictedKeys} field value + */ private LedgerKey[] evictedKeys; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/LedgerCloseValueSignature.java b/src/main/java/org/stellar/sdk/xdr/LedgerCloseValueSignature.java index 1377ea71f..55bcd7deb 100644 --- a/src/main/java/org/stellar/sdk/xdr/LedgerCloseValueSignature.java +++ b/src/main/java/org/stellar/sdk/xdr/LedgerCloseValueSignature.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class LedgerCloseValueSignature implements XdrElement { + /** + * Value of the {@code nodeID} field. + * + * @param nodeID the {@code nodeID} field value + * @return the {@code nodeID} field value + */ private NodeID nodeID; + + /** + * Value of the {@code signature} field. + * + * @param signature the {@code signature} field value + * @return the {@code signature} field value + */ private Signature signature; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/LedgerEntry.java b/src/main/java/org/stellar/sdk/xdr/LedgerEntry.java index 566b3ef25..bf8b6c263 100644 --- a/src/main/java/org/stellar/sdk/xdr/LedgerEntry.java +++ b/src/main/java/org/stellar/sdk/xdr/LedgerEntry.java @@ -62,8 +62,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class LedgerEntry implements XdrElement { + /** + * Value of the {@code lastModifiedLedgerSeq} field. + * + * @param lastModifiedLedgerSeq the {@code lastModifiedLedgerSeq} field value + * @return the {@code lastModifiedLedgerSeq} field value + */ private Uint32 lastModifiedLedgerSeq; + + /** + * Value of the {@code data} field. + * + * @param data the {@code data} field value + * @return the {@code data} field value + */ private LedgerEntryData data; + + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private LedgerEntryExt ext; public void encode(XdrDataOutputStream stream) throws IOException { @@ -161,16 +181,92 @@ static LedgerEntry fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class LedgerEntryData implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private LedgerEntryType discriminant; + + /** + * Value of the {@code account} field. + * + * @param account the {@code account} field value + * @return the {@code account} field value + */ private AccountEntry account; + + /** + * Value of the {@code trustLine} field. + * + * @param trustLine the {@code trustLine} field value + * @return the {@code trustLine} field value + */ private TrustLineEntry trustLine; + + /** + * Value of the {@code offer} field. + * + * @param offer the {@code offer} field value + * @return the {@code offer} field value + */ private OfferEntry offer; + + /** + * Value of the {@code data} field. + * + * @param data the {@code data} field value + * @return the {@code data} field value + */ private DataEntry data; + + /** + * Value of the {@code claimableBalance} field. + * + * @param claimableBalance the {@code claimableBalance} field value + * @return the {@code claimableBalance} field value + */ private ClaimableBalanceEntry claimableBalance; + + /** + * Value of the {@code liquidityPool} field. + * + * @param liquidityPool the {@code liquidityPool} field value + * @return the {@code liquidityPool} field value + */ private LiquidityPoolEntry liquidityPool; + + /** + * Value of the {@code contractData} field. + * + * @param contractData the {@code contractData} field value + * @return the {@code contractData} field value + */ private ContractDataEntry contractData; + + /** + * Value of the {@code contractCode} field. + * + * @param contractCode the {@code contractCode} field value + * @return the {@code contractCode} field value + */ private ContractCodeEntry contractCode; + + /** + * Value of the {@code configSetting} field. + * + * @param configSetting the {@code configSetting} field value + * @return the {@code configSetting} field value + */ private ConfigSettingEntry configSetting; + + /** + * Value of the {@code ttl} field. + * + * @param ttl the {@code ttl} field value + * @return the {@code ttl} field value + */ private TTLEntry ttl; public void encode(XdrDataOutputStream stream) throws IOException { @@ -430,7 +526,20 @@ static LedgerEntryData fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class LedgerEntryExt implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; + + /** + * Value of the {@code v1} field. + * + * @param v1 the {@code v1} field value + * @return the {@code v1} field value + */ private LedgerEntryExtensionV1 v1; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/LedgerEntryChange.java b/src/main/java/org/stellar/sdk/xdr/LedgerEntryChange.java index c6c76fe3b..5945c37bb 100644 --- a/src/main/java/org/stellar/sdk/xdr/LedgerEntryChange.java +++ b/src/main/java/org/stellar/sdk/xdr/LedgerEntryChange.java @@ -36,11 +36,52 @@ @AllArgsConstructor @Builder(toBuilder = true) public class LedgerEntryChange implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private LedgerEntryChangeType discriminant; + + /** + * Value of the {@code created} field. + * + * @param created the {@code created} field value + * @return the {@code created} field value + */ private LedgerEntry created; + + /** + * Value of the {@code updated} field. + * + * @param updated the {@code updated} field value + * @return the {@code updated} field value + */ private LedgerEntry updated; + + /** + * Value of the {@code removed} field. + * + * @param removed the {@code removed} field value + * @return the {@code removed} field value + */ private LedgerKey removed; + + /** + * Value of the {@code state} field. + * + * @param state the {@code state} field value + * @return the {@code state} field value + */ private LedgerEntry state; + + /** + * Value of the {@code restored} field. + * + * @param restored the {@code restored} field value + * @return the {@code restored} field value + */ private LedgerEntry restored; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/LedgerEntryChanges.java b/src/main/java/org/stellar/sdk/xdr/LedgerEntryChanges.java index 701a6db4b..da0552402 100644 --- a/src/main/java/org/stellar/sdk/xdr/LedgerEntryChanges.java +++ b/src/main/java/org/stellar/sdk/xdr/LedgerEntryChanges.java @@ -22,6 +22,12 @@ @NoArgsConstructor @AllArgsConstructor public class LedgerEntryChanges implements XdrElement { + /** + * Value of the {@code LedgerEntryChanges} field. + * + * @param LedgerEntryChanges the {@code LedgerEntryChanges} field value + * @return the {@code LedgerEntryChanges} field value + */ private LedgerEntryChange[] LedgerEntryChanges; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/LedgerEntryExtensionV1.java b/src/main/java/org/stellar/sdk/xdr/LedgerEntryExtensionV1.java index 8d5b15603..d8e1b2f40 100644 --- a/src/main/java/org/stellar/sdk/xdr/LedgerEntryExtensionV1.java +++ b/src/main/java/org/stellar/sdk/xdr/LedgerEntryExtensionV1.java @@ -34,7 +34,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class LedgerEntryExtensionV1 implements XdrElement { + /** + * Value of the {@code sponsoringID} field. + * + * @param sponsoringID the {@code sponsoringID} field value + * @return the {@code sponsoringID} field value + */ private SponsorshipDescriptor sponsoringID; + + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private LedgerEntryExtensionV1Ext ext; public void encode(XdrDataOutputStream stream) throws IOException { @@ -111,6 +124,12 @@ static LedgerEntryExtensionV1 fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class LedgerEntryExtensionV1Ext implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/LedgerFootprint.java b/src/main/java/org/stellar/sdk/xdr/LedgerFootprint.java index 8260a5fdf..318ce6978 100644 --- a/src/main/java/org/stellar/sdk/xdr/LedgerFootprint.java +++ b/src/main/java/org/stellar/sdk/xdr/LedgerFootprint.java @@ -29,7 +29,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class LedgerFootprint implements XdrElement { + /** + * Value of the {@code readOnly} field. + * + * @param readOnly the {@code readOnly} field value + * @return the {@code readOnly} field value + */ private LedgerKey[] readOnly; + + /** + * Value of the {@code readWrite} field. + * + * @param readWrite the {@code readWrite} field value + * @return the {@code readWrite} field value + */ private LedgerKey[] readWrite; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/LedgerHeader.java b/src/main/java/org/stellar/sdk/xdr/LedgerHeader.java index b7bcf2bd4..5277aed4f 100644 --- a/src/main/java/org/stellar/sdk/xdr/LedgerHeader.java +++ b/src/main/java/org/stellar/sdk/xdr/LedgerHeader.java @@ -63,20 +63,124 @@ @AllArgsConstructor @Builder(toBuilder = true) public class LedgerHeader implements XdrElement { + /** + * Value of the {@code ledgerVersion} field. + * + * @param ledgerVersion the {@code ledgerVersion} field value + * @return the {@code ledgerVersion} field value + */ private Uint32 ledgerVersion; + + /** + * Value of the {@code previousLedgerHash} field. + * + * @param previousLedgerHash the {@code previousLedgerHash} field value + * @return the {@code previousLedgerHash} field value + */ private Hash previousLedgerHash; + + /** + * Value of the {@code scpValue} field. + * + * @param scpValue the {@code scpValue} field value + * @return the {@code scpValue} field value + */ private StellarValue scpValue; + + /** + * Value of the {@code txSetResultHash} field. + * + * @param txSetResultHash the {@code txSetResultHash} field value + * @return the {@code txSetResultHash} field value + */ private Hash txSetResultHash; + + /** + * Value of the {@code bucketListHash} field. + * + * @param bucketListHash the {@code bucketListHash} field value + * @return the {@code bucketListHash} field value + */ private Hash bucketListHash; + + /** + * Value of the {@code ledgerSeq} field. + * + * @param ledgerSeq the {@code ledgerSeq} field value + * @return the {@code ledgerSeq} field value + */ private Uint32 ledgerSeq; + + /** + * Value of the {@code totalCoins} field. + * + * @param totalCoins the {@code totalCoins} field value + * @return the {@code totalCoins} field value + */ private Int64 totalCoins; + + /** + * Value of the {@code feePool} field. + * + * @param feePool the {@code feePool} field value + * @return the {@code feePool} field value + */ private Int64 feePool; + + /** + * Value of the {@code inflationSeq} field. + * + * @param inflationSeq the {@code inflationSeq} field value + * @return the {@code inflationSeq} field value + */ private Uint32 inflationSeq; + + /** + * Value of the {@code idPool} field. + * + * @param idPool the {@code idPool} field value + * @return the {@code idPool} field value + */ private Uint64 idPool; + + /** + * Value of the {@code baseFee} field. + * + * @param baseFee the {@code baseFee} field value + * @return the {@code baseFee} field value + */ private Uint32 baseFee; + + /** + * Value of the {@code baseReserve} field. + * + * @param baseReserve the {@code baseReserve} field value + * @return the {@code baseReserve} field value + */ private Uint32 baseReserve; + + /** + * Value of the {@code maxTxSetSize} field. + * + * @param maxTxSetSize the {@code maxTxSetSize} field value + * @return the {@code maxTxSetSize} field value + */ private Uint32 maxTxSetSize; + + /** + * Value of the {@code skipList} field. + * + * @param skipList the {@code skipList} field value + * @return the {@code skipList} field value + */ private Hash[] skipList; + + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private LedgerHeaderExt ext; public void encode(XdrDataOutputStream stream) throws IOException { @@ -219,7 +323,20 @@ static LedgerHeader fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class LedgerHeaderExt implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; + + /** + * Value of the {@code v1} field. + * + * @param v1 the {@code v1} field value + * @return the {@code v1} field value + */ private LedgerHeaderExtensionV1 v1; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/LedgerHeaderExtensionV1.java b/src/main/java/org/stellar/sdk/xdr/LedgerHeaderExtensionV1.java index e90177b35..c274ce969 100644 --- a/src/main/java/org/stellar/sdk/xdr/LedgerHeaderExtensionV1.java +++ b/src/main/java/org/stellar/sdk/xdr/LedgerHeaderExtensionV1.java @@ -34,7 +34,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class LedgerHeaderExtensionV1 implements XdrElement { + /** + * Value of the {@code flags} field. + * + * @param flags the {@code flags} field value + * @return the {@code flags} field value + */ private Uint32 flags; + + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private LedgerHeaderExtensionV1Ext ext; public void encode(XdrDataOutputStream stream) throws IOException { @@ -111,6 +124,12 @@ static LedgerHeaderExtensionV1 fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class LedgerHeaderExtensionV1Ext implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/LedgerHeaderHistoryEntry.java b/src/main/java/org/stellar/sdk/xdr/LedgerHeaderHistoryEntry.java index 8dc99381f..76116b079 100644 --- a/src/main/java/org/stellar/sdk/xdr/LedgerHeaderHistoryEntry.java +++ b/src/main/java/org/stellar/sdk/xdr/LedgerHeaderHistoryEntry.java @@ -36,8 +36,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class LedgerHeaderHistoryEntry implements XdrElement { + /** + * Value of the {@code hash} field. + * + * @param hash the {@code hash} field value + * @return the {@code hash} field value + */ private Hash hash; + + /** + * Value of the {@code header} field. + * + * @param header the {@code header} field value + * @return the {@code header} field value + */ private LedgerHeader header; + + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private LedgerHeaderHistoryEntryExt ext; public void encode(XdrDataOutputStream stream) throws IOException { @@ -118,6 +138,12 @@ static LedgerHeaderHistoryEntry fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class LedgerHeaderHistoryEntryExt implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/LedgerKey.java b/src/main/java/org/stellar/sdk/xdr/LedgerKey.java index f7eb6ae3e..795ea75de 100644 --- a/src/main/java/org/stellar/sdk/xdr/LedgerKey.java +++ b/src/main/java/org/stellar/sdk/xdr/LedgerKey.java @@ -87,16 +87,92 @@ @AllArgsConstructor @Builder(toBuilder = true) public class LedgerKey implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private LedgerEntryType discriminant; + + /** + * Value of the {@code account} field. + * + * @param account the {@code account} field value + * @return the {@code account} field value + */ private LedgerKeyAccount account; + + /** + * Value of the {@code trustLine} field. + * + * @param trustLine the {@code trustLine} field value + * @return the {@code trustLine} field value + */ private LedgerKeyTrustLine trustLine; + + /** + * Value of the {@code offer} field. + * + * @param offer the {@code offer} field value + * @return the {@code offer} field value + */ private LedgerKeyOffer offer; + + /** + * Value of the {@code data} field. + * + * @param data the {@code data} field value + * @return the {@code data} field value + */ private LedgerKeyData data; + + /** + * Value of the {@code claimableBalance} field. + * + * @param claimableBalance the {@code claimableBalance} field value + * @return the {@code claimableBalance} field value + */ private LedgerKeyClaimableBalance claimableBalance; + + /** + * Value of the {@code liquidityPool} field. + * + * @param liquidityPool the {@code liquidityPool} field value + * @return the {@code liquidityPool} field value + */ private LedgerKeyLiquidityPool liquidityPool; + + /** + * Value of the {@code contractData} field. + * + * @param contractData the {@code contractData} field value + * @return the {@code contractData} field value + */ private LedgerKeyContractData contractData; + + /** + * Value of the {@code contractCode} field. + * + * @param contractCode the {@code contractCode} field value + * @return the {@code contractCode} field value + */ private LedgerKeyContractCode contractCode; + + /** + * Value of the {@code configSetting} field. + * + * @param configSetting the {@code configSetting} field value + * @return the {@code configSetting} field value + */ private LedgerKeyConfigSetting configSetting; + + /** + * Value of the {@code ttl} field. + * + * @param ttl the {@code ttl} field value + * @return the {@code ttl} field value + */ private LedgerKeyTtl ttl; public void encode(XdrDataOutputStream stream) throws IOException { @@ -351,6 +427,12 @@ static LedgerKey fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class LedgerKeyAccount implements XdrElement { + /** + * Value of the {@code accountID} field. + * + * @param accountID the {@code accountID} field value + * @return the {@code accountID} field value + */ private AccountID accountID; public void encode(XdrDataOutputStream stream) throws IOException { @@ -424,7 +506,20 @@ static LedgerKeyAccount fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class LedgerKeyTrustLine implements XdrElement { + /** + * Value of the {@code accountID} field. + * + * @param accountID the {@code accountID} field value + * @return the {@code accountID} field value + */ private AccountID accountID; + + /** + * Value of the {@code asset} field. + * + * @param asset the {@code asset} field value + * @return the {@code asset} field value + */ private TrustLineAsset asset; public void encode(XdrDataOutputStream stream) throws IOException { @@ -502,7 +597,20 @@ static LedgerKeyTrustLine fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class LedgerKeyOffer implements XdrElement { + /** + * Value of the {@code sellerID} field. + * + * @param sellerID the {@code sellerID} field value + * @return the {@code sellerID} field value + */ private AccountID sellerID; + + /** + * Value of the {@code offerID} field. + * + * @param offerID the {@code offerID} field value + * @return the {@code offerID} field value + */ private Int64 offerID; public void encode(XdrDataOutputStream stream) throws IOException { @@ -580,7 +688,20 @@ static LedgerKeyOffer fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class LedgerKeyData implements XdrElement { + /** + * Value of the {@code accountID} field. + * + * @param accountID the {@code accountID} field value + * @return the {@code accountID} field value + */ private AccountID accountID; + + /** + * Value of the {@code dataName} field. + * + * @param dataName the {@code dataName} field value + * @return the {@code dataName} field value + */ private String64 dataName; public void encode(XdrDataOutputStream stream) throws IOException { @@ -656,6 +777,12 @@ static LedgerKeyData fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class LedgerKeyClaimableBalance implements XdrElement { + /** + * Value of the {@code balanceID} field. + * + * @param balanceID the {@code balanceID} field value + * @return the {@code balanceID} field value + */ private ClaimableBalanceID balanceID; public void encode(XdrDataOutputStream stream) throws IOException { @@ -728,6 +855,12 @@ static LedgerKeyClaimableBalance fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class LedgerKeyLiquidityPool implements XdrElement { + /** + * Value of the {@code liquidityPoolID} field. + * + * @param liquidityPoolID the {@code liquidityPoolID} field value + * @return the {@code liquidityPoolID} field value + */ private PoolID liquidityPoolID; public void encode(XdrDataOutputStream stream) throws IOException { @@ -802,8 +935,28 @@ static LedgerKeyLiquidityPool fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class LedgerKeyContractData implements XdrElement { + /** + * Value of the {@code contract} field. + * + * @param contract the {@code contract} field value + * @return the {@code contract} field value + */ private SCAddress contract; + + /** + * Value of the {@code key} field. + * + * @param key the {@code key} field value + * @return the {@code key} field value + */ private SCVal key; + + /** + * Value of the {@code durability} field. + * + * @param durability the {@code durability} field value + * @return the {@code durability} field value + */ private ContractDataDurability durability; public void encode(XdrDataOutputStream stream) throws IOException { @@ -884,6 +1037,12 @@ static LedgerKeyContractData fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class LedgerKeyContractCode implements XdrElement { + /** + * Value of the {@code hash} field. + * + * @param hash the {@code hash} field value + * @return the {@code hash} field value + */ private Hash hash; public void encode(XdrDataOutputStream stream) throws IOException { @@ -956,6 +1115,12 @@ static LedgerKeyContractCode fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class LedgerKeyConfigSetting implements XdrElement { + /** + * Value of the {@code configSettingID} field. + * + * @param configSettingID the {@code configSettingID} field value + * @return the {@code configSettingID} field value + */ private ConfigSettingID configSettingID; public void encode(XdrDataOutputStream stream) throws IOException { @@ -1029,6 +1194,12 @@ static LedgerKeyConfigSetting fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class LedgerKeyTtl implements XdrElement { + /** + * Value of the {@code keyHash} field. + * + * @param keyHash the {@code keyHash} field value + * @return the {@code keyHash} field value + */ private Hash keyHash; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/LedgerSCPMessages.java b/src/main/java/org/stellar/sdk/xdr/LedgerSCPMessages.java index 7d1346e6a..7d818be1c 100644 --- a/src/main/java/org/stellar/sdk/xdr/LedgerSCPMessages.java +++ b/src/main/java/org/stellar/sdk/xdr/LedgerSCPMessages.java @@ -29,7 +29,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class LedgerSCPMessages implements XdrElement { + /** + * Value of the {@code ledgerSeq} field. + * + * @param ledgerSeq the {@code ledgerSeq} field value + * @return the {@code ledgerSeq} field value + */ private Uint32 ledgerSeq; + + /** + * Value of the {@code messages} field. + * + * @param messages the {@code messages} field value + * @return the {@code messages} field value + */ private SCPEnvelope[] messages; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/LedgerUpgrade.java b/src/main/java/org/stellar/sdk/xdr/LedgerUpgrade.java index b8712ed53..3dbda2654 100644 --- a/src/main/java/org/stellar/sdk/xdr/LedgerUpgrade.java +++ b/src/main/java/org/stellar/sdk/xdr/LedgerUpgrade.java @@ -43,13 +43,68 @@ @AllArgsConstructor @Builder(toBuilder = true) public class LedgerUpgrade implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private LedgerUpgradeType discriminant; + + /** + * Value of the {@code newLedgerVersion} field. + * + * @param newLedgerVersion the {@code newLedgerVersion} field value + * @return the {@code newLedgerVersion} field value + */ private Uint32 newLedgerVersion; + + /** + * Value of the {@code newBaseFee} field. + * + * @param newBaseFee the {@code newBaseFee} field value + * @return the {@code newBaseFee} field value + */ private Uint32 newBaseFee; + + /** + * Value of the {@code newMaxTxSetSize} field. + * + * @param newMaxTxSetSize the {@code newMaxTxSetSize} field value + * @return the {@code newMaxTxSetSize} field value + */ private Uint32 newMaxTxSetSize; + + /** + * Value of the {@code newBaseReserve} field. + * + * @param newBaseReserve the {@code newBaseReserve} field value + * @return the {@code newBaseReserve} field value + */ private Uint32 newBaseReserve; + + /** + * Value of the {@code newFlags} field. + * + * @param newFlags the {@code newFlags} field value + * @return the {@code newFlags} field value + */ private Uint32 newFlags; + + /** + * Value of the {@code newConfig} field. + * + * @param newConfig the {@code newConfig} field value + * @return the {@code newConfig} field value + */ private ConfigUpgradeSetKey newConfig; + + /** + * Value of the {@code newMaxSorobanTxSetSize} field. + * + * @param newMaxSorobanTxSetSize the {@code newMaxSorobanTxSetSize} field value + * @return the {@code newMaxSorobanTxSetSize} field value + */ private Uint32 newMaxSorobanTxSetSize; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/Liabilities.java b/src/main/java/org/stellar/sdk/xdr/Liabilities.java index c40a8ebad..11c9d5eb9 100644 --- a/src/main/java/org/stellar/sdk/xdr/Liabilities.java +++ b/src/main/java/org/stellar/sdk/xdr/Liabilities.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class Liabilities implements XdrElement { + /** + * Value of the {@code buying} field. + * + * @param buying the {@code buying} field value + * @return the {@code buying} field value + */ private Int64 buying; + + /** + * Value of the {@code selling} field. + * + * @param selling the {@code selling} field value + * @return the {@code selling} field value + */ private Int64 selling; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/LiquidityPoolConstantProductParameters.java b/src/main/java/org/stellar/sdk/xdr/LiquidityPoolConstantProductParameters.java index 7925a29e6..b5fa9d60b 100644 --- a/src/main/java/org/stellar/sdk/xdr/LiquidityPoolConstantProductParameters.java +++ b/src/main/java/org/stellar/sdk/xdr/LiquidityPoolConstantProductParameters.java @@ -29,8 +29,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class LiquidityPoolConstantProductParameters implements XdrElement { + /** + * Value of the {@code assetA} field. + * + * @param assetA the {@code assetA} field value + * @return the {@code assetA} field value + */ private Asset assetA; + + /** + * Value of the {@code assetB} field. + * + * @param assetB the {@code assetB} field value + * @return the {@code assetB} field value + */ private Asset assetB; + + /** + * Value of the {@code fee} field. + * + * @param fee the {@code fee} field value + * @return the {@code fee} field value + */ private Int32 fee; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/LiquidityPoolDepositOp.java b/src/main/java/org/stellar/sdk/xdr/LiquidityPoolDepositOp.java index da22a22ce..bd3bfcbab 100644 --- a/src/main/java/org/stellar/sdk/xdr/LiquidityPoolDepositOp.java +++ b/src/main/java/org/stellar/sdk/xdr/LiquidityPoolDepositOp.java @@ -31,10 +31,44 @@ @AllArgsConstructor @Builder(toBuilder = true) public class LiquidityPoolDepositOp implements XdrElement { + /** + * Value of the {@code liquidityPoolID} field. + * + * @param liquidityPoolID the {@code liquidityPoolID} field value + * @return the {@code liquidityPoolID} field value + */ private PoolID liquidityPoolID; + + /** + * Value of the {@code maxAmountA} field. + * + * @param maxAmountA the {@code maxAmountA} field value + * @return the {@code maxAmountA} field value + */ private Int64 maxAmountA; + + /** + * Value of the {@code maxAmountB} field. + * + * @param maxAmountB the {@code maxAmountB} field value + * @return the {@code maxAmountB} field value + */ private Int64 maxAmountB; + + /** + * Value of the {@code minPrice} field. + * + * @param minPrice the {@code minPrice} field value + * @return the {@code minPrice} field value + */ private Price minPrice; + + /** + * Value of the {@code maxPrice} field. + * + * @param maxPrice the {@code maxPrice} field value + * @return the {@code maxPrice} field value + */ private Price maxPrice; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/LiquidityPoolDepositResult.java b/src/main/java/org/stellar/sdk/xdr/LiquidityPoolDepositResult.java index 12ffcf7b3..69792dc86 100644 --- a/src/main/java/org/stellar/sdk/xdr/LiquidityPoolDepositResult.java +++ b/src/main/java/org/stellar/sdk/xdr/LiquidityPoolDepositResult.java @@ -36,6 +36,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class LiquidityPoolDepositResult implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private LiquidityPoolDepositResultCode discriminant; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/LiquidityPoolEntry.java b/src/main/java/org/stellar/sdk/xdr/LiquidityPoolEntry.java index 2eb1ca641..9c53de09b 100644 --- a/src/main/java/org/stellar/sdk/xdr/LiquidityPoolEntry.java +++ b/src/main/java/org/stellar/sdk/xdr/LiquidityPoolEntry.java @@ -43,7 +43,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class LiquidityPoolEntry implements XdrElement { + /** + * Value of the {@code liquidityPoolID} field. + * + * @param liquidityPoolID the {@code liquidityPoolID} field value + * @return the {@code liquidityPoolID} field value + */ private PoolID liquidityPoolID; + + /** + * Value of the {@code body} field. + * + * @param body the {@code body} field value + * @return the {@code body} field value + */ private LiquidityPoolEntryBody body; public void encode(XdrDataOutputStream stream) throws IOException { @@ -129,7 +142,20 @@ static LiquidityPoolEntry fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class LiquidityPoolEntryBody implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private LiquidityPoolType discriminant; + + /** + * Value of the {@code constantProduct} field. + * + * @param constantProduct the {@code constantProduct} field value + * @return the {@code constantProduct} field value + */ private LiquidityPoolEntryConstantProduct constantProduct; public void encode(XdrDataOutputStream stream) throws IOException { @@ -240,10 +266,44 @@ static LiquidityPoolEntryBody fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class LiquidityPoolEntryConstantProduct implements XdrElement { + /** + * Value of the {@code params} field. + * + * @param params the {@code params} field value + * @return the {@code params} field value + */ private LiquidityPoolConstantProductParameters params; + + /** + * Value of the {@code reserveA} field. + * + * @param reserveA the {@code reserveA} field value + * @return the {@code reserveA} field value + */ private Int64 reserveA; + + /** + * Value of the {@code reserveB} field. + * + * @param reserveB the {@code reserveB} field value + * @return the {@code reserveB} field value + */ private Int64 reserveB; + + /** + * Value of the {@code totalPoolShares} field. + * + * @param totalPoolShares the {@code totalPoolShares} field value + * @return the {@code totalPoolShares} field value + */ private Int64 totalPoolShares; + + /** + * Value of the {@code poolSharesTrustLineCount} field. + * + * @param poolSharesTrustLineCount the {@code poolSharesTrustLineCount} field value + * @return the {@code poolSharesTrustLineCount} field value + */ private Int64 poolSharesTrustLineCount; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/LiquidityPoolParameters.java b/src/main/java/org/stellar/sdk/xdr/LiquidityPoolParameters.java index 882201a8d..0fc89e45e 100644 --- a/src/main/java/org/stellar/sdk/xdr/LiquidityPoolParameters.java +++ b/src/main/java/org/stellar/sdk/xdr/LiquidityPoolParameters.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class LiquidityPoolParameters implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private LiquidityPoolType discriminant; + + /** + * Value of the {@code constantProduct} field. + * + * @param constantProduct the {@code constantProduct} field value + * @return the {@code constantProduct} field value + */ private LiquidityPoolConstantProductParameters constantProduct; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/LiquidityPoolWithdrawOp.java b/src/main/java/org/stellar/sdk/xdr/LiquidityPoolWithdrawOp.java index 11038a4b7..614cf91a0 100644 --- a/src/main/java/org/stellar/sdk/xdr/LiquidityPoolWithdrawOp.java +++ b/src/main/java/org/stellar/sdk/xdr/LiquidityPoolWithdrawOp.java @@ -30,9 +30,36 @@ @AllArgsConstructor @Builder(toBuilder = true) public class LiquidityPoolWithdrawOp implements XdrElement { + /** + * Value of the {@code liquidityPoolID} field. + * + * @param liquidityPoolID the {@code liquidityPoolID} field value + * @return the {@code liquidityPoolID} field value + */ private PoolID liquidityPoolID; + + /** + * Value of the {@code amount} field. + * + * @param amount the {@code amount} field value + * @return the {@code amount} field value + */ private Int64 amount; + + /** + * Value of the {@code minAmountA} field. + * + * @param minAmountA the {@code minAmountA} field value + * @return the {@code minAmountA} field value + */ private Int64 minAmountA; + + /** + * Value of the {@code minAmountB} field. + * + * @param minAmountB the {@code minAmountB} field value + * @return the {@code minAmountB} field value + */ private Int64 minAmountB; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/LiquidityPoolWithdrawResult.java b/src/main/java/org/stellar/sdk/xdr/LiquidityPoolWithdrawResult.java index a6711d02c..e1cdc436d 100644 --- a/src/main/java/org/stellar/sdk/xdr/LiquidityPoolWithdrawResult.java +++ b/src/main/java/org/stellar/sdk/xdr/LiquidityPoolWithdrawResult.java @@ -34,6 +34,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class LiquidityPoolWithdrawResult implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private LiquidityPoolWithdrawResultCode discriminant; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ManageBuyOfferOp.java b/src/main/java/org/stellar/sdk/xdr/ManageBuyOfferOp.java index fd4ec161a..dd082b408 100644 --- a/src/main/java/org/stellar/sdk/xdr/ManageBuyOfferOp.java +++ b/src/main/java/org/stellar/sdk/xdr/ManageBuyOfferOp.java @@ -34,10 +34,44 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ManageBuyOfferOp implements XdrElement { + /** + * Value of the {@code selling} field. + * + * @param selling the {@code selling} field value + * @return the {@code selling} field value + */ private Asset selling; + + /** + * Value of the {@code buying} field. + * + * @param buying the {@code buying} field value + * @return the {@code buying} field value + */ private Asset buying; + + /** + * Value of the {@code buyAmount} field. + * + * @param buyAmount the {@code buyAmount} field value + * @return the {@code buyAmount} field value + */ private Int64 buyAmount; + + /** + * Value of the {@code price} field. + * + * @param price the {@code price} field value + * @return the {@code price} field value + */ private Price price; + + /** + * Value of the {@code offerID} field. + * + * @param offerID the {@code offerID} field value + * @return the {@code offerID} field value + */ private Int64 offerID; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ManageBuyOfferResult.java b/src/main/java/org/stellar/sdk/xdr/ManageBuyOfferResult.java index d25128fc7..8c9c35cb6 100644 --- a/src/main/java/org/stellar/sdk/xdr/ManageBuyOfferResult.java +++ b/src/main/java/org/stellar/sdk/xdr/ManageBuyOfferResult.java @@ -41,7 +41,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ManageBuyOfferResult implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private ManageBuyOfferResultCode discriminant; + + /** + * Value of the {@code success} field. + * + * @param success the {@code success} field value + * @return the {@code success} field value + */ private ManageOfferSuccessResult success; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ManageDataOp.java b/src/main/java/org/stellar/sdk/xdr/ManageDataOp.java index 5409e0d1c..881e62fd7 100644 --- a/src/main/java/org/stellar/sdk/xdr/ManageDataOp.java +++ b/src/main/java/org/stellar/sdk/xdr/ManageDataOp.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ManageDataOp implements XdrElement { + /** + * Value of the {@code dataName} field. + * + * @param dataName the {@code dataName} field value + * @return the {@code dataName} field value + */ private String64 dataName; + + /** + * Value of the {@code dataValue} field. + * + * @param dataValue the {@code dataValue} field value + * @return the {@code dataValue} field value + */ private DataValue dataValue; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ManageDataResult.java b/src/main/java/org/stellar/sdk/xdr/ManageDataResult.java index abd79ce98..10663cf04 100644 --- a/src/main/java/org/stellar/sdk/xdr/ManageDataResult.java +++ b/src/main/java/org/stellar/sdk/xdr/ManageDataResult.java @@ -32,6 +32,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ManageDataResult implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private ManageDataResultCode discriminant; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ManageOfferSuccessResult.java b/src/main/java/org/stellar/sdk/xdr/ManageOfferSuccessResult.java index 08faa3b52..08611f1f4 100644 --- a/src/main/java/org/stellar/sdk/xdr/ManageOfferSuccessResult.java +++ b/src/main/java/org/stellar/sdk/xdr/ManageOfferSuccessResult.java @@ -39,7 +39,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ManageOfferSuccessResult implements XdrElement { + /** + * Value of the {@code offersClaimed} field. + * + * @param offersClaimed the {@code offersClaimed} field value + * @return the {@code offersClaimed} field value + */ private ClaimAtom[] offersClaimed; + + /** + * Value of the {@code offer} field. + * + * @param offer the {@code offer} field value + * @return the {@code offer} field value + */ private ManageOfferSuccessResultOffer offer; public void encode(XdrDataOutputStream stream) throws IOException { @@ -144,7 +157,20 @@ static ManageOfferSuccessResult fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class ManageOfferSuccessResultOffer implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private ManageOfferEffect discriminant; + + /** + * Value of the {@code offer} field. + * + * @param offer the {@code offer} field value + * @return the {@code offer} field value + */ private OfferEntry offer; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ManageSellOfferOp.java b/src/main/java/org/stellar/sdk/xdr/ManageSellOfferOp.java index a42c6e614..c12e57750 100644 --- a/src/main/java/org/stellar/sdk/xdr/ManageSellOfferOp.java +++ b/src/main/java/org/stellar/sdk/xdr/ManageSellOfferOp.java @@ -33,10 +33,44 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ManageSellOfferOp implements XdrElement { + /** + * Value of the {@code selling} field. + * + * @param selling the {@code selling} field value + * @return the {@code selling} field value + */ private Asset selling; + + /** + * Value of the {@code buying} field. + * + * @param buying the {@code buying} field value + * @return the {@code buying} field value + */ private Asset buying; + + /** + * Value of the {@code amount} field. + * + * @param amount the {@code amount} field value + * @return the {@code amount} field value + */ private Int64 amount; + + /** + * Value of the {@code price} field. + * + * @param price the {@code price} field value + * @return the {@code price} field value + */ private Price price; + + /** + * Value of the {@code offerID} field. + * + * @param offerID the {@code offerID} field value + * @return the {@code offerID} field value + */ private Int64 offerID; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ManageSellOfferResult.java b/src/main/java/org/stellar/sdk/xdr/ManageSellOfferResult.java index 65097902e..ad6d1a890 100644 --- a/src/main/java/org/stellar/sdk/xdr/ManageSellOfferResult.java +++ b/src/main/java/org/stellar/sdk/xdr/ManageSellOfferResult.java @@ -41,7 +41,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ManageSellOfferResult implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private ManageSellOfferResultCode discriminant; + + /** + * Value of the {@code success} field. + * + * @param success the {@code success} field value + * @return the {@code success} field value + */ private ManageOfferSuccessResult success; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/Memo.java b/src/main/java/org/stellar/sdk/xdr/Memo.java index a71c17f9f..ffd23c4ba 100644 --- a/src/main/java/org/stellar/sdk/xdr/Memo.java +++ b/src/main/java/org/stellar/sdk/xdr/Memo.java @@ -36,10 +36,44 @@ @AllArgsConstructor @Builder(toBuilder = true) public class Memo implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private MemoType discriminant; + + /** + * Value of the {@code text} field. + * + * @param text the {@code text} field value + * @return the {@code text} field value + */ private XdrString text; + + /** + * Value of the {@code id} field. + * + * @param id the {@code id} field value + * @return the {@code id} field value + */ private Uint64 id; + + /** + * Value of the {@code hash} field. + * + * @param hash the {@code hash} field value + * @return the {@code hash} field value + */ private Hash hash; + + /** + * Value of the {@code retHash} field. + * + * @param retHash the {@code retHash} field value + * @return the {@code retHash} field value + */ private Hash retHash; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/MuxedAccount.java b/src/main/java/org/stellar/sdk/xdr/MuxedAccount.java index 06b6a8230..fe7de225a 100644 --- a/src/main/java/org/stellar/sdk/xdr/MuxedAccount.java +++ b/src/main/java/org/stellar/sdk/xdr/MuxedAccount.java @@ -36,8 +36,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class MuxedAccount implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private CryptoKeyType discriminant; + + /** + * Value of the {@code ed25519} field. + * + * @param ed25519 the {@code ed25519} field value + * @return the {@code ed25519} field value + */ private Uint256 ed25519; + + /** + * Value of the {@code med25519} field. + * + * @param med25519 the {@code med25519} field value + * @return the {@code med25519} field value + */ private MuxedAccountMed25519 med25519; public void encode(XdrDataOutputStream stream) throws IOException { @@ -156,7 +176,20 @@ static MuxedAccount fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class MuxedAccountMed25519 implements XdrElement { + /** + * Value of the {@code id} field. + * + * @param id the {@code id} field value + * @return the {@code id} field value + */ private Uint64 id; + + /** + * Value of the {@code ed25519} field. + * + * @param ed25519 the {@code ed25519} field value + * @return the {@code ed25519} field value + */ private Uint256 ed25519; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/MuxedEd25519Account.java b/src/main/java/org/stellar/sdk/xdr/MuxedEd25519Account.java index dc8fe96ca..e0f6803eb 100644 --- a/src/main/java/org/stellar/sdk/xdr/MuxedEd25519Account.java +++ b/src/main/java/org/stellar/sdk/xdr/MuxedEd25519Account.java @@ -29,7 +29,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class MuxedEd25519Account implements XdrElement { + /** + * Value of the {@code id} field. + * + * @param id the {@code id} field value + * @return the {@code id} field value + */ private Uint64 id; + + /** + * Value of the {@code ed25519} field. + * + * @param ed25519 the {@code ed25519} field value + * @return the {@code ed25519} field value + */ private Uint256 ed25519; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/NodeID.java b/src/main/java/org/stellar/sdk/xdr/NodeID.java index e4f67420e..b5e3d5190 100644 --- a/src/main/java/org/stellar/sdk/xdr/NodeID.java +++ b/src/main/java/org/stellar/sdk/xdr/NodeID.java @@ -22,6 +22,12 @@ @NoArgsConstructor @AllArgsConstructor public class NodeID implements XdrElement { + /** + * Value of the {@code NodeID} field. + * + * @param NodeID the {@code NodeID} field value + * @return the {@code NodeID} field value + */ private PublicKey NodeID; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/OfferEntry.java b/src/main/java/org/stellar/sdk/xdr/OfferEntry.java index 4923ae594..44f5826b2 100644 --- a/src/main/java/org/stellar/sdk/xdr/OfferEntry.java +++ b/src/main/java/org/stellar/sdk/xdr/OfferEntry.java @@ -47,13 +47,68 @@ @AllArgsConstructor @Builder(toBuilder = true) public class OfferEntry implements XdrElement { + /** + * Value of the {@code sellerID} field. + * + * @param sellerID the {@code sellerID} field value + * @return the {@code sellerID} field value + */ private AccountID sellerID; + + /** + * Value of the {@code offerID} field. + * + * @param offerID the {@code offerID} field value + * @return the {@code offerID} field value + */ private Int64 offerID; + + /** + * Value of the {@code selling} field. + * + * @param selling the {@code selling} field value + * @return the {@code selling} field value + */ private Asset selling; + + /** + * Value of the {@code buying} field. + * + * @param buying the {@code buying} field value + * @return the {@code buying} field value + */ private Asset buying; + + /** + * Value of the {@code amount} field. + * + * @param amount the {@code amount} field value + * @return the {@code amount} field value + */ private Int64 amount; + + /** + * Value of the {@code price} field. + * + * @param price the {@code price} field value + * @return the {@code price} field value + */ private Price price; + + /** + * Value of the {@code flags} field. + * + * @param flags the {@code flags} field value + * @return the {@code flags} field value + */ private Uint32 flags; + + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private OfferEntryExt ext; public void encode(XdrDataOutputStream stream) throws IOException { @@ -153,6 +208,12 @@ static OfferEntry fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class OfferEntryExt implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/Operation.java b/src/main/java/org/stellar/sdk/xdr/Operation.java index cfcbb93f6..a96763372 100644 --- a/src/main/java/org/stellar/sdk/xdr/Operation.java +++ b/src/main/java/org/stellar/sdk/xdr/Operation.java @@ -89,7 +89,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class Operation implements XdrElement { + /** + * Value of the {@code sourceAccount} field. + * + * @param sourceAccount the {@code sourceAccount} field value + * @return the {@code sourceAccount} field value + */ private MuxedAccount sourceAccount; + + /** + * Value of the {@code body} field. + * + * @param body the {@code body} field value + * @return the {@code body} field value + */ private OperationBody body; public void encode(XdrDataOutputStream stream) throws IOException { @@ -228,31 +241,213 @@ static Operation fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class OperationBody implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private OperationType discriminant; + + /** + * Value of the {@code createAccountOp} field. + * + * @param createAccountOp the {@code createAccountOp} field value + * @return the {@code createAccountOp} field value + */ private CreateAccountOp createAccountOp; + + /** + * Value of the {@code paymentOp} field. + * + * @param paymentOp the {@code paymentOp} field value + * @return the {@code paymentOp} field value + */ private PaymentOp paymentOp; + + /** + * Value of the {@code pathPaymentStrictReceiveOp} field. + * + * @param pathPaymentStrictReceiveOp the {@code pathPaymentStrictReceiveOp} field value + * @return the {@code pathPaymentStrictReceiveOp} field value + */ private PathPaymentStrictReceiveOp pathPaymentStrictReceiveOp; + + /** + * Value of the {@code manageSellOfferOp} field. + * + * @param manageSellOfferOp the {@code manageSellOfferOp} field value + * @return the {@code manageSellOfferOp} field value + */ private ManageSellOfferOp manageSellOfferOp; + + /** + * Value of the {@code createPassiveSellOfferOp} field. + * + * @param createPassiveSellOfferOp the {@code createPassiveSellOfferOp} field value + * @return the {@code createPassiveSellOfferOp} field value + */ private CreatePassiveSellOfferOp createPassiveSellOfferOp; + + /** + * Value of the {@code setOptionsOp} field. + * + * @param setOptionsOp the {@code setOptionsOp} field value + * @return the {@code setOptionsOp} field value + */ private SetOptionsOp setOptionsOp; + + /** + * Value of the {@code changeTrustOp} field. + * + * @param changeTrustOp the {@code changeTrustOp} field value + * @return the {@code changeTrustOp} field value + */ private ChangeTrustOp changeTrustOp; + + /** + * Value of the {@code allowTrustOp} field. + * + * @param allowTrustOp the {@code allowTrustOp} field value + * @return the {@code allowTrustOp} field value + */ private AllowTrustOp allowTrustOp; + + /** + * Value of the {@code destination} field. + * + * @param destination the {@code destination} field value + * @return the {@code destination} field value + */ private MuxedAccount destination; + + /** + * Value of the {@code manageDataOp} field. + * + * @param manageDataOp the {@code manageDataOp} field value + * @return the {@code manageDataOp} field value + */ private ManageDataOp manageDataOp; + + /** + * Value of the {@code bumpSequenceOp} field. + * + * @param bumpSequenceOp the {@code bumpSequenceOp} field value + * @return the {@code bumpSequenceOp} field value + */ private BumpSequenceOp bumpSequenceOp; + + /** + * Value of the {@code manageBuyOfferOp} field. + * + * @param manageBuyOfferOp the {@code manageBuyOfferOp} field value + * @return the {@code manageBuyOfferOp} field value + */ private ManageBuyOfferOp manageBuyOfferOp; + + /** + * Value of the {@code pathPaymentStrictSendOp} field. + * + * @param pathPaymentStrictSendOp the {@code pathPaymentStrictSendOp} field value + * @return the {@code pathPaymentStrictSendOp} field value + */ private PathPaymentStrictSendOp pathPaymentStrictSendOp; + + /** + * Value of the {@code createClaimableBalanceOp} field. + * + * @param createClaimableBalanceOp the {@code createClaimableBalanceOp} field value + * @return the {@code createClaimableBalanceOp} field value + */ private CreateClaimableBalanceOp createClaimableBalanceOp; + + /** + * Value of the {@code claimClaimableBalanceOp} field. + * + * @param claimClaimableBalanceOp the {@code claimClaimableBalanceOp} field value + * @return the {@code claimClaimableBalanceOp} field value + */ private ClaimClaimableBalanceOp claimClaimableBalanceOp; + + /** + * Value of the {@code beginSponsoringFutureReservesOp} field. + * + * @param beginSponsoringFutureReservesOp the {@code beginSponsoringFutureReservesOp} field + * value + * @return the {@code beginSponsoringFutureReservesOp} field value + */ private BeginSponsoringFutureReservesOp beginSponsoringFutureReservesOp; + + /** + * Value of the {@code revokeSponsorshipOp} field. + * + * @param revokeSponsorshipOp the {@code revokeSponsorshipOp} field value + * @return the {@code revokeSponsorshipOp} field value + */ private RevokeSponsorshipOp revokeSponsorshipOp; + + /** + * Value of the {@code clawbackOp} field. + * + * @param clawbackOp the {@code clawbackOp} field value + * @return the {@code clawbackOp} field value + */ private ClawbackOp clawbackOp; + + /** + * Value of the {@code clawbackClaimableBalanceOp} field. + * + * @param clawbackClaimableBalanceOp the {@code clawbackClaimableBalanceOp} field value + * @return the {@code clawbackClaimableBalanceOp} field value + */ private ClawbackClaimableBalanceOp clawbackClaimableBalanceOp; + + /** + * Value of the {@code setTrustLineFlagsOp} field. + * + * @param setTrustLineFlagsOp the {@code setTrustLineFlagsOp} field value + * @return the {@code setTrustLineFlagsOp} field value + */ private SetTrustLineFlagsOp setTrustLineFlagsOp; + + /** + * Value of the {@code liquidityPoolDepositOp} field. + * + * @param liquidityPoolDepositOp the {@code liquidityPoolDepositOp} field value + * @return the {@code liquidityPoolDepositOp} field value + */ private LiquidityPoolDepositOp liquidityPoolDepositOp; + + /** + * Value of the {@code liquidityPoolWithdrawOp} field. + * + * @param liquidityPoolWithdrawOp the {@code liquidityPoolWithdrawOp} field value + * @return the {@code liquidityPoolWithdrawOp} field value + */ private LiquidityPoolWithdrawOp liquidityPoolWithdrawOp; + + /** + * Value of the {@code invokeHostFunctionOp} field. + * + * @param invokeHostFunctionOp the {@code invokeHostFunctionOp} field value + * @return the {@code invokeHostFunctionOp} field value + */ private InvokeHostFunctionOp invokeHostFunctionOp; + + /** + * Value of the {@code extendFootprintTTLOp} field. + * + * @param extendFootprintTTLOp the {@code extendFootprintTTLOp} field value + * @return the {@code extendFootprintTTLOp} field value + */ private ExtendFootprintTTLOp extendFootprintTTLOp; + + /** + * Value of the {@code restoreFootprintOp} field. + * + * @param restoreFootprintOp the {@code restoreFootprintOp} field value + * @return the {@code restoreFootprintOp} field value + */ private RestoreFootprintOp restoreFootprintOp; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/OperationMeta.java b/src/main/java/org/stellar/sdk/xdr/OperationMeta.java index d01e5b4fc..8476ecafe 100644 --- a/src/main/java/org/stellar/sdk/xdr/OperationMeta.java +++ b/src/main/java/org/stellar/sdk/xdr/OperationMeta.java @@ -27,6 +27,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class OperationMeta implements XdrElement { + /** + * Value of the {@code changes} field. + * + * @param changes the {@code changes} field value + * @return the {@code changes} field value + */ private LedgerEntryChanges changes; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/OperationMetaV2.java b/src/main/java/org/stellar/sdk/xdr/OperationMetaV2.java index 0b3807b0f..2e0628388 100644 --- a/src/main/java/org/stellar/sdk/xdr/OperationMetaV2.java +++ b/src/main/java/org/stellar/sdk/xdr/OperationMetaV2.java @@ -32,8 +32,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class OperationMetaV2 implements XdrElement { + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private ExtensionPoint ext; + + /** + * Value of the {@code changes} field. + * + * @param changes the {@code changes} field value + * @return the {@code changes} field value + */ private LedgerEntryChanges changes; + + /** + * Value of the {@code events} field. + * + * @param events the {@code events} field value + * @return the {@code events} field value + */ private ContractEvent[] events; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/OperationResult.java b/src/main/java/org/stellar/sdk/xdr/OperationResult.java index 534757e16..fe2ea0b52 100644 --- a/src/main/java/org/stellar/sdk/xdr/OperationResult.java +++ b/src/main/java/org/stellar/sdk/xdr/OperationResult.java @@ -92,7 +92,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class OperationResult implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private OperationResultCode discriminant; + + /** + * Value of the {@code tr} field. + * + * @param tr the {@code tr} field value + * @return the {@code tr} field value + */ private OperationResultTr tr; public void encode(XdrDataOutputStream stream) throws IOException { @@ -293,33 +306,230 @@ static OperationResult fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class OperationResultTr implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private OperationType discriminant; + + /** + * Value of the {@code createAccountResult} field. + * + * @param createAccountResult the {@code createAccountResult} field value + * @return the {@code createAccountResult} field value + */ private CreateAccountResult createAccountResult; + + /** + * Value of the {@code paymentResult} field. + * + * @param paymentResult the {@code paymentResult} field value + * @return the {@code paymentResult} field value + */ private PaymentResult paymentResult; + + /** + * Value of the {@code pathPaymentStrictReceiveResult} field. + * + * @param pathPaymentStrictReceiveResult the {@code pathPaymentStrictReceiveResult} field value + * @return the {@code pathPaymentStrictReceiveResult} field value + */ private PathPaymentStrictReceiveResult pathPaymentStrictReceiveResult; + + /** + * Value of the {@code manageSellOfferResult} field. + * + * @param manageSellOfferResult the {@code manageSellOfferResult} field value + * @return the {@code manageSellOfferResult} field value + */ private ManageSellOfferResult manageSellOfferResult; + + /** + * Value of the {@code createPassiveSellOfferResult} field. + * + * @param createPassiveSellOfferResult the {@code createPassiveSellOfferResult} field value + * @return the {@code createPassiveSellOfferResult} field value + */ private ManageSellOfferResult createPassiveSellOfferResult; + + /** + * Value of the {@code setOptionsResult} field. + * + * @param setOptionsResult the {@code setOptionsResult} field value + * @return the {@code setOptionsResult} field value + */ private SetOptionsResult setOptionsResult; + + /** + * Value of the {@code changeTrustResult} field. + * + * @param changeTrustResult the {@code changeTrustResult} field value + * @return the {@code changeTrustResult} field value + */ private ChangeTrustResult changeTrustResult; + + /** + * Value of the {@code allowTrustResult} field. + * + * @param allowTrustResult the {@code allowTrustResult} field value + * @return the {@code allowTrustResult} field value + */ private AllowTrustResult allowTrustResult; + + /** + * Value of the {@code accountMergeResult} field. + * + * @param accountMergeResult the {@code accountMergeResult} field value + * @return the {@code accountMergeResult} field value + */ private AccountMergeResult accountMergeResult; + + /** + * Value of the {@code inflationResult} field. + * + * @param inflationResult the {@code inflationResult} field value + * @return the {@code inflationResult} field value + */ private InflationResult inflationResult; + + /** + * Value of the {@code manageDataResult} field. + * + * @param manageDataResult the {@code manageDataResult} field value + * @return the {@code manageDataResult} field value + */ private ManageDataResult manageDataResult; + + /** + * Value of the {@code bumpSeqResult} field. + * + * @param bumpSeqResult the {@code bumpSeqResult} field value + * @return the {@code bumpSeqResult} field value + */ private BumpSequenceResult bumpSeqResult; + + /** + * Value of the {@code manageBuyOfferResult} field. + * + * @param manageBuyOfferResult the {@code manageBuyOfferResult} field value + * @return the {@code manageBuyOfferResult} field value + */ private ManageBuyOfferResult manageBuyOfferResult; + + /** + * Value of the {@code pathPaymentStrictSendResult} field. + * + * @param pathPaymentStrictSendResult the {@code pathPaymentStrictSendResult} field value + * @return the {@code pathPaymentStrictSendResult} field value + */ private PathPaymentStrictSendResult pathPaymentStrictSendResult; + + /** + * Value of the {@code createClaimableBalanceResult} field. + * + * @param createClaimableBalanceResult the {@code createClaimableBalanceResult} field value + * @return the {@code createClaimableBalanceResult} field value + */ private CreateClaimableBalanceResult createClaimableBalanceResult; + + /** + * Value of the {@code claimClaimableBalanceResult} field. + * + * @param claimClaimableBalanceResult the {@code claimClaimableBalanceResult} field value + * @return the {@code claimClaimableBalanceResult} field value + */ private ClaimClaimableBalanceResult claimClaimableBalanceResult; + + /** + * Value of the {@code beginSponsoringFutureReservesResult} field. + * + * @param beginSponsoringFutureReservesResult the {@code beginSponsoringFutureReservesResult} + * field value + * @return the {@code beginSponsoringFutureReservesResult} field value + */ private BeginSponsoringFutureReservesResult beginSponsoringFutureReservesResult; + + /** + * Value of the {@code endSponsoringFutureReservesResult} field. + * + * @param endSponsoringFutureReservesResult the {@code endSponsoringFutureReservesResult} field + * value + * @return the {@code endSponsoringFutureReservesResult} field value + */ private EndSponsoringFutureReservesResult endSponsoringFutureReservesResult; + + /** + * Value of the {@code revokeSponsorshipResult} field. + * + * @param revokeSponsorshipResult the {@code revokeSponsorshipResult} field value + * @return the {@code revokeSponsorshipResult} field value + */ private RevokeSponsorshipResult revokeSponsorshipResult; + + /** + * Value of the {@code clawbackResult} field. + * + * @param clawbackResult the {@code clawbackResult} field value + * @return the {@code clawbackResult} field value + */ private ClawbackResult clawbackResult; + + /** + * Value of the {@code clawbackClaimableBalanceResult} field. + * + * @param clawbackClaimableBalanceResult the {@code clawbackClaimableBalanceResult} field value + * @return the {@code clawbackClaimableBalanceResult} field value + */ private ClawbackClaimableBalanceResult clawbackClaimableBalanceResult; + + /** + * Value of the {@code setTrustLineFlagsResult} field. + * + * @param setTrustLineFlagsResult the {@code setTrustLineFlagsResult} field value + * @return the {@code setTrustLineFlagsResult} field value + */ private SetTrustLineFlagsResult setTrustLineFlagsResult; + + /** + * Value of the {@code liquidityPoolDepositResult} field. + * + * @param liquidityPoolDepositResult the {@code liquidityPoolDepositResult} field value + * @return the {@code liquidityPoolDepositResult} field value + */ private LiquidityPoolDepositResult liquidityPoolDepositResult; + + /** + * Value of the {@code liquidityPoolWithdrawResult} field. + * + * @param liquidityPoolWithdrawResult the {@code liquidityPoolWithdrawResult} field value + * @return the {@code liquidityPoolWithdrawResult} field value + */ private LiquidityPoolWithdrawResult liquidityPoolWithdrawResult; + + /** + * Value of the {@code invokeHostFunctionResult} field. + * + * @param invokeHostFunctionResult the {@code invokeHostFunctionResult} field value + * @return the {@code invokeHostFunctionResult} field value + */ private InvokeHostFunctionResult invokeHostFunctionResult; + + /** + * Value of the {@code extendFootprintTTLResult} field. + * + * @param extendFootprintTTLResult the {@code extendFootprintTTLResult} field value + * @return the {@code extendFootprintTTLResult} field value + */ private ExtendFootprintTTLResult extendFootprintTTLResult; + + /** + * Value of the {@code restoreFootprintResult} field. + * + * @param restoreFootprintResult the {@code restoreFootprintResult} field value + * @return the {@code restoreFootprintResult} field value + */ private RestoreFootprintResult restoreFootprintResult; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ParallelTxExecutionStage.java b/src/main/java/org/stellar/sdk/xdr/ParallelTxExecutionStage.java index cf08f0980..db2eace65 100644 --- a/src/main/java/org/stellar/sdk/xdr/ParallelTxExecutionStage.java +++ b/src/main/java/org/stellar/sdk/xdr/ParallelTxExecutionStage.java @@ -22,6 +22,12 @@ @NoArgsConstructor @AllArgsConstructor public class ParallelTxExecutionStage implements XdrElement { + /** + * Value of the {@code ParallelTxExecutionStage} field. + * + * @param ParallelTxExecutionStage the {@code ParallelTxExecutionStage} field value + * @return the {@code ParallelTxExecutionStage} field value + */ private DependentTxCluster[] ParallelTxExecutionStage; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ParallelTxsComponent.java b/src/main/java/org/stellar/sdk/xdr/ParallelTxsComponent.java index 4b176bd8f..f7003098d 100644 --- a/src/main/java/org/stellar/sdk/xdr/ParallelTxsComponent.java +++ b/src/main/java/org/stellar/sdk/xdr/ParallelTxsComponent.java @@ -32,7 +32,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ParallelTxsComponent implements XdrElement { + /** + * Value of the {@code baseFee} field. + * + * @param baseFee the {@code baseFee} field value + * @return the {@code baseFee} field value + */ private Int64 baseFee; + + /** + * Value of the {@code executionStages} field. + * + * @param executionStages the {@code executionStages} field value + * @return the {@code executionStages} field value + */ private ParallelTxExecutionStage[] executionStages; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/PathPaymentStrictReceiveOp.java b/src/main/java/org/stellar/sdk/xdr/PathPaymentStrictReceiveOp.java index eda773d64..abc0a32a7 100644 --- a/src/main/java/org/stellar/sdk/xdr/PathPaymentStrictReceiveOp.java +++ b/src/main/java/org/stellar/sdk/xdr/PathPaymentStrictReceiveOp.java @@ -37,11 +37,52 @@ @AllArgsConstructor @Builder(toBuilder = true) public class PathPaymentStrictReceiveOp implements XdrElement { + /** + * Value of the {@code sendAsset} field. + * + * @param sendAsset the {@code sendAsset} field value + * @return the {@code sendAsset} field value + */ private Asset sendAsset; + + /** + * Value of the {@code sendMax} field. + * + * @param sendMax the {@code sendMax} field value + * @return the {@code sendMax} field value + */ private Int64 sendMax; + + /** + * Value of the {@code destination} field. + * + * @param destination the {@code destination} field value + * @return the {@code destination} field value + */ private MuxedAccount destination; + + /** + * Value of the {@code destAsset} field. + * + * @param destAsset the {@code destAsset} field value + * @return the {@code destAsset} field value + */ private Asset destAsset; + + /** + * Value of the {@code destAmount} field. + * + * @param destAmount the {@code destAmount} field value + * @return the {@code destAmount} field value + */ private Int64 destAmount; + + /** + * Value of the {@code path} field. + * + * @param path the {@code path} field value + * @return the {@code path} field value + */ private Asset[] path; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/PathPaymentStrictReceiveResult.java b/src/main/java/org/stellar/sdk/xdr/PathPaymentStrictReceiveResult.java index fdded6dd4..0f8e3d856 100644 --- a/src/main/java/org/stellar/sdk/xdr/PathPaymentStrictReceiveResult.java +++ b/src/main/java/org/stellar/sdk/xdr/PathPaymentStrictReceiveResult.java @@ -49,8 +49,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class PathPaymentStrictReceiveResult implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private PathPaymentStrictReceiveResultCode discriminant; + + /** + * Value of the {@code success} field. + * + * @param success the {@code success} field value + * @return the {@code success} field value + */ private PathPaymentStrictReceiveResultSuccess success; + + /** + * Value of the {@code noIssuer} field. + * + * @param noIssuer the {@code noIssuer} field value + * @return the {@code noIssuer} field value + */ private Asset noIssuer; public void encode(XdrDataOutputStream stream) throws IOException { @@ -264,7 +284,20 @@ static PathPaymentStrictReceiveResult fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class PathPaymentStrictReceiveResultSuccess implements XdrElement { + /** + * Value of the {@code offers} field. + * + * @param offers the {@code offers} field value + * @return the {@code offers} field value + */ private ClaimAtom[] offers; + + /** + * Value of the {@code last} field. + * + * @param last the {@code last} field value + * @return the {@code last} field value + */ private SimplePaymentResult last; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/PathPaymentStrictSendOp.java b/src/main/java/org/stellar/sdk/xdr/PathPaymentStrictSendOp.java index c01c0e46e..af4599f8b 100644 --- a/src/main/java/org/stellar/sdk/xdr/PathPaymentStrictSendOp.java +++ b/src/main/java/org/stellar/sdk/xdr/PathPaymentStrictSendOp.java @@ -37,11 +37,52 @@ @AllArgsConstructor @Builder(toBuilder = true) public class PathPaymentStrictSendOp implements XdrElement { + /** + * Value of the {@code sendAsset} field. + * + * @param sendAsset the {@code sendAsset} field value + * @return the {@code sendAsset} field value + */ private Asset sendAsset; + + /** + * Value of the {@code sendAmount} field. + * + * @param sendAmount the {@code sendAmount} field value + * @return the {@code sendAmount} field value + */ private Int64 sendAmount; + + /** + * Value of the {@code destination} field. + * + * @param destination the {@code destination} field value + * @return the {@code destination} field value + */ private MuxedAccount destination; + + /** + * Value of the {@code destAsset} field. + * + * @param destAsset the {@code destAsset} field value + * @return the {@code destAsset} field value + */ private Asset destAsset; + + /** + * Value of the {@code destMin} field. + * + * @param destMin the {@code destMin} field value + * @return the {@code destMin} field value + */ private Int64 destMin; + + /** + * Value of the {@code path} field. + * + * @param path the {@code path} field value + * @return the {@code path} field value + */ private Asset[] path; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/PathPaymentStrictSendResult.java b/src/main/java/org/stellar/sdk/xdr/PathPaymentStrictSendResult.java index eb7c44f74..41e95334e 100644 --- a/src/main/java/org/stellar/sdk/xdr/PathPaymentStrictSendResult.java +++ b/src/main/java/org/stellar/sdk/xdr/PathPaymentStrictSendResult.java @@ -48,8 +48,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class PathPaymentStrictSendResult implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private PathPaymentStrictSendResultCode discriminant; + + /** + * Value of the {@code success} field. + * + * @param success the {@code success} field value + * @return the {@code success} field value + */ private PathPaymentStrictSendResultSuccess success; + + /** + * Value of the {@code noIssuer} field. + * + * @param noIssuer the {@code noIssuer} field value + * @return the {@code noIssuer} field value + */ private Asset noIssuer; public void encode(XdrDataOutputStream stream) throws IOException { @@ -253,7 +273,20 @@ static PathPaymentStrictSendResult fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class PathPaymentStrictSendResultSuccess implements XdrElement { + /** + * Value of the {@code offers} field. + * + * @param offers the {@code offers} field value + * @return the {@code offers} field value + */ private ClaimAtom[] offers; + + /** + * Value of the {@code last} field. + * + * @param last the {@code last} field value + * @return the {@code last} field value + */ private SimplePaymentResult last; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/PaymentOp.java b/src/main/java/org/stellar/sdk/xdr/PaymentOp.java index faf0478d7..84a551eb9 100644 --- a/src/main/java/org/stellar/sdk/xdr/PaymentOp.java +++ b/src/main/java/org/stellar/sdk/xdr/PaymentOp.java @@ -29,8 +29,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class PaymentOp implements XdrElement { + /** + * Value of the {@code destination} field. + * + * @param destination the {@code destination} field value + * @return the {@code destination} field value + */ private MuxedAccount destination; + + /** + * Value of the {@code asset} field. + * + * @param asset the {@code asset} field value + * @return the {@code asset} field value + */ private Asset asset; + + /** + * Value of the {@code amount} field. + * + * @param amount the {@code amount} field value + * @return the {@code amount} field value + */ private Int64 amount; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/PaymentResult.java b/src/main/java/org/stellar/sdk/xdr/PaymentResult.java index b567e4648..74231e85b 100644 --- a/src/main/java/org/stellar/sdk/xdr/PaymentResult.java +++ b/src/main/java/org/stellar/sdk/xdr/PaymentResult.java @@ -37,6 +37,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class PaymentResult implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private PaymentResultCode discriminant; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/PeerAddress.java b/src/main/java/org/stellar/sdk/xdr/PeerAddress.java index 86af4bea5..5ff8fe827 100644 --- a/src/main/java/org/stellar/sdk/xdr/PeerAddress.java +++ b/src/main/java/org/stellar/sdk/xdr/PeerAddress.java @@ -36,8 +36,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class PeerAddress implements XdrElement { + /** + * Value of the {@code ip} field. + * + * @param ip the {@code ip} field value + * @return the {@code ip} field value + */ private PeerAddressIp ip; + + /** + * Value of the {@code port} field. + * + * @param port the {@code port} field value + * @return the {@code port} field value + */ private Uint32 port; + + /** + * Value of the {@code numFailures} field. + * + * @param numFailures the {@code numFailures} field value + * @return the {@code numFailures} field value + */ private Uint32 numFailures; public void encode(XdrDataOutputStream stream) throws IOException { @@ -119,8 +139,28 @@ static PeerAddress fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class PeerAddressIp implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private IPAddrType discriminant; + + /** + * Value of the {@code ipv4} field. + * + * @param ipv4 the {@code ipv4} field value + * @return the {@code ipv4} field value + */ private byte[] ipv4; + + /** + * Value of the {@code ipv6} field. + * + * @param ipv6 the {@code ipv6} field value + * @return the {@code ipv6} field value + */ private byte[] ipv6; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/PeerStats.java b/src/main/java/org/stellar/sdk/xdr/PeerStats.java index 5cc6adae2..a03461951 100644 --- a/src/main/java/org/stellar/sdk/xdr/PeerStats.java +++ b/src/main/java/org/stellar/sdk/xdr/PeerStats.java @@ -43,20 +43,124 @@ @AllArgsConstructor @Builder(toBuilder = true) public class PeerStats implements XdrElement { + /** + * Value of the {@code id} field. + * + * @param id the {@code id} field value + * @return the {@code id} field value + */ private NodeID id; + + /** + * Value of the {@code versionStr} field. + * + * @param versionStr the {@code versionStr} field value + * @return the {@code versionStr} field value + */ private XdrString versionStr; + + /** + * Value of the {@code messagesRead} field. + * + * @param messagesRead the {@code messagesRead} field value + * @return the {@code messagesRead} field value + */ private Uint64 messagesRead; + + /** + * Value of the {@code messagesWritten} field. + * + * @param messagesWritten the {@code messagesWritten} field value + * @return the {@code messagesWritten} field value + */ private Uint64 messagesWritten; + + /** + * Value of the {@code bytesRead} field. + * + * @param bytesRead the {@code bytesRead} field value + * @return the {@code bytesRead} field value + */ private Uint64 bytesRead; + + /** + * Value of the {@code bytesWritten} field. + * + * @param bytesWritten the {@code bytesWritten} field value + * @return the {@code bytesWritten} field value + */ private Uint64 bytesWritten; + + /** + * Value of the {@code secondsConnected} field. + * + * @param secondsConnected the {@code secondsConnected} field value + * @return the {@code secondsConnected} field value + */ private Uint64 secondsConnected; + + /** + * Value of the {@code uniqueFloodBytesRecv} field. + * + * @param uniqueFloodBytesRecv the {@code uniqueFloodBytesRecv} field value + * @return the {@code uniqueFloodBytesRecv} field value + */ private Uint64 uniqueFloodBytesRecv; + + /** + * Value of the {@code duplicateFloodBytesRecv} field. + * + * @param duplicateFloodBytesRecv the {@code duplicateFloodBytesRecv} field value + * @return the {@code duplicateFloodBytesRecv} field value + */ private Uint64 duplicateFloodBytesRecv; + + /** + * Value of the {@code uniqueFetchBytesRecv} field. + * + * @param uniqueFetchBytesRecv the {@code uniqueFetchBytesRecv} field value + * @return the {@code uniqueFetchBytesRecv} field value + */ private Uint64 uniqueFetchBytesRecv; + + /** + * Value of the {@code duplicateFetchBytesRecv} field. + * + * @param duplicateFetchBytesRecv the {@code duplicateFetchBytesRecv} field value + * @return the {@code duplicateFetchBytesRecv} field value + */ private Uint64 duplicateFetchBytesRecv; + + /** + * Value of the {@code uniqueFloodMessageRecv} field. + * + * @param uniqueFloodMessageRecv the {@code uniqueFloodMessageRecv} field value + * @return the {@code uniqueFloodMessageRecv} field value + */ private Uint64 uniqueFloodMessageRecv; + + /** + * Value of the {@code duplicateFloodMessageRecv} field. + * + * @param duplicateFloodMessageRecv the {@code duplicateFloodMessageRecv} field value + * @return the {@code duplicateFloodMessageRecv} field value + */ private Uint64 duplicateFloodMessageRecv; + + /** + * Value of the {@code uniqueFetchMessageRecv} field. + * + * @param uniqueFetchMessageRecv the {@code uniqueFetchMessageRecv} field value + * @return the {@code uniqueFetchMessageRecv} field value + */ private Uint64 uniqueFetchMessageRecv; + + /** + * Value of the {@code duplicateFetchMessageRecv} field. + * + * @param duplicateFetchMessageRecv the {@code duplicateFetchMessageRecv} field value + * @return the {@code duplicateFetchMessageRecv} field value + */ private Uint64 duplicateFetchMessageRecv; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/PersistedSCPState.java b/src/main/java/org/stellar/sdk/xdr/PersistedSCPState.java index 8e237e068..811274f80 100644 --- a/src/main/java/org/stellar/sdk/xdr/PersistedSCPState.java +++ b/src/main/java/org/stellar/sdk/xdr/PersistedSCPState.java @@ -30,8 +30,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class PersistedSCPState implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; + + /** + * Value of the {@code v0} field. + * + * @param v0 the {@code v0} field value + * @return the {@code v0} field value + */ private PersistedSCPStateV0 v0; + + /** + * Value of the {@code v1} field. + * + * @param v1 the {@code v1} field value + * @return the {@code v1} field value + */ private PersistedSCPStateV1 v1; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/PersistedSCPStateV0.java b/src/main/java/org/stellar/sdk/xdr/PersistedSCPStateV0.java index 9ae472849..9e1946911 100644 --- a/src/main/java/org/stellar/sdk/xdr/PersistedSCPStateV0.java +++ b/src/main/java/org/stellar/sdk/xdr/PersistedSCPStateV0.java @@ -30,8 +30,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class PersistedSCPStateV0 implements XdrElement { + /** + * Value of the {@code scpEnvelopes} field. + * + * @param scpEnvelopes the {@code scpEnvelopes} field value + * @return the {@code scpEnvelopes} field value + */ private SCPEnvelope[] scpEnvelopes; + + /** + * Value of the {@code quorumSets} field. + * + * @param quorumSets the {@code quorumSets} field value + * @return the {@code quorumSets} field value + */ private SCPQuorumSet[] quorumSets; + + /** + * Value of the {@code txSets} field. + * + * @param txSets the {@code txSets} field value + * @return the {@code txSets} field value + */ private StoredTransactionSet[] txSets; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/PersistedSCPStateV1.java b/src/main/java/org/stellar/sdk/xdr/PersistedSCPStateV1.java index 35844423c..c1e9a53e6 100644 --- a/src/main/java/org/stellar/sdk/xdr/PersistedSCPStateV1.java +++ b/src/main/java/org/stellar/sdk/xdr/PersistedSCPStateV1.java @@ -30,7 +30,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class PersistedSCPStateV1 implements XdrElement { + /** + * Value of the {@code scpEnvelopes} field. + * + * @param scpEnvelopes the {@code scpEnvelopes} field value + * @return the {@code scpEnvelopes} field value + */ private SCPEnvelope[] scpEnvelopes; + + /** + * Value of the {@code quorumSets} field. + * + * @param quorumSets the {@code quorumSets} field value + * @return the {@code quorumSets} field value + */ private SCPQuorumSet[] quorumSets; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/PoolID.java b/src/main/java/org/stellar/sdk/xdr/PoolID.java index 5bae56e59..13f9663df 100644 --- a/src/main/java/org/stellar/sdk/xdr/PoolID.java +++ b/src/main/java/org/stellar/sdk/xdr/PoolID.java @@ -22,6 +22,12 @@ @NoArgsConstructor @AllArgsConstructor public class PoolID implements XdrElement { + /** + * Value of the {@code PoolID} field. + * + * @param PoolID the {@code PoolID} field value + * @return the {@code PoolID} field value + */ private Hash PoolID; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/Preconditions.java b/src/main/java/org/stellar/sdk/xdr/Preconditions.java index 789802177..ddcead450 100644 --- a/src/main/java/org/stellar/sdk/xdr/Preconditions.java +++ b/src/main/java/org/stellar/sdk/xdr/Preconditions.java @@ -32,8 +32,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class Preconditions implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private PreconditionType discriminant; + + /** + * Value of the {@code timeBounds} field. + * + * @param timeBounds the {@code timeBounds} field value + * @return the {@code timeBounds} field value + */ private TimeBounds timeBounds; + + /** + * Value of the {@code v2} field. + * + * @param v2 the {@code v2} field value + * @return the {@code v2} field value + */ private PreconditionsV2 v2; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/PreconditionsV2.java b/src/main/java/org/stellar/sdk/xdr/PreconditionsV2.java index 1713f3a5e..ac9b73ca1 100644 --- a/src/main/java/org/stellar/sdk/xdr/PreconditionsV2.java +++ b/src/main/java/org/stellar/sdk/xdr/PreconditionsV2.java @@ -56,11 +56,52 @@ @AllArgsConstructor @Builder(toBuilder = true) public class PreconditionsV2 implements XdrElement { + /** + * Value of the {@code timeBounds} field. + * + * @param timeBounds the {@code timeBounds} field value + * @return the {@code timeBounds} field value + */ private TimeBounds timeBounds; + + /** + * Value of the {@code ledgerBounds} field. + * + * @param ledgerBounds the {@code ledgerBounds} field value + * @return the {@code ledgerBounds} field value + */ private LedgerBounds ledgerBounds; + + /** + * Value of the {@code minSeqNum} field. + * + * @param minSeqNum the {@code minSeqNum} field value + * @return the {@code minSeqNum} field value + */ private SequenceNumber minSeqNum; + + /** + * Value of the {@code minSeqAge} field. + * + * @param minSeqAge the {@code minSeqAge} field value + * @return the {@code minSeqAge} field value + */ private Duration minSeqAge; + + /** + * Value of the {@code minSeqLedgerGap} field. + * + * @param minSeqLedgerGap the {@code minSeqLedgerGap} field value + * @return the {@code minSeqLedgerGap} field value + */ private Uint32 minSeqLedgerGap; + + /** + * Value of the {@code extraSigners} field. + * + * @param extraSigners the {@code extraSigners} field value + * @return the {@code extraSigners} field value + */ private SignerKey[] extraSigners; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/Price.java b/src/main/java/org/stellar/sdk/xdr/Price.java index 10e6a897e..ccecd65cc 100644 --- a/src/main/java/org/stellar/sdk/xdr/Price.java +++ b/src/main/java/org/stellar/sdk/xdr/Price.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class Price implements XdrElement { + /** + * Value of the {@code n} field. + * + * @param n the {@code n} field value + * @return the {@code n} field value + */ private Int32 n; + + /** + * Value of the {@code d} field. + * + * @param d the {@code d} field value + * @return the {@code d} field value + */ private Int32 d; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/PublicKey.java b/src/main/java/org/stellar/sdk/xdr/PublicKey.java index 72fdb1150..70218a642 100644 --- a/src/main/java/org/stellar/sdk/xdr/PublicKey.java +++ b/src/main/java/org/stellar/sdk/xdr/PublicKey.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class PublicKey implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private PublicKeyType discriminant; + + /** + * Value of the {@code ed25519} field. + * + * @param ed25519 the {@code ed25519} field value + * @return the {@code ed25519} field value + */ private Uint256 ed25519; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/RestoreFootprintOp.java b/src/main/java/org/stellar/sdk/xdr/RestoreFootprintOp.java index 8d184f555..3a469a8a4 100644 --- a/src/main/java/org/stellar/sdk/xdr/RestoreFootprintOp.java +++ b/src/main/java/org/stellar/sdk/xdr/RestoreFootprintOp.java @@ -27,6 +27,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class RestoreFootprintOp implements XdrElement { + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private ExtensionPoint ext; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/RestoreFootprintResult.java b/src/main/java/org/stellar/sdk/xdr/RestoreFootprintResult.java index dcd352c40..8ca103ab7 100644 --- a/src/main/java/org/stellar/sdk/xdr/RestoreFootprintResult.java +++ b/src/main/java/org/stellar/sdk/xdr/RestoreFootprintResult.java @@ -31,6 +31,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class RestoreFootprintResult implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private RestoreFootprintResultCode discriminant; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/RevokeSponsorshipOp.java b/src/main/java/org/stellar/sdk/xdr/RevokeSponsorshipOp.java index c02938ce0..f823eab16 100644 --- a/src/main/java/org/stellar/sdk/xdr/RevokeSponsorshipOp.java +++ b/src/main/java/org/stellar/sdk/xdr/RevokeSponsorshipOp.java @@ -34,8 +34,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class RevokeSponsorshipOp implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private RevokeSponsorshipType discriminant; + + /** + * Value of the {@code ledgerKey} field. + * + * @param ledgerKey the {@code ledgerKey} field value + * @return the {@code ledgerKey} field value + */ private LedgerKey ledgerKey; + + /** + * Value of the {@code signer} field. + * + * @param signer the {@code signer} field value + * @return the {@code signer} field value + */ private RevokeSponsorshipOpSigner signer; public void encode(XdrDataOutputStream stream) throws IOException { @@ -155,7 +175,20 @@ static RevokeSponsorshipOp fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class RevokeSponsorshipOpSigner implements XdrElement { + /** + * Value of the {@code accountID} field. + * + * @param accountID the {@code accountID} field value + * @return the {@code accountID} field value + */ private AccountID accountID; + + /** + * Value of the {@code signerKey} field. + * + * @param signerKey the {@code signerKey} field value + * @return the {@code signerKey} field value + */ private SignerKey signerKey; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/RevokeSponsorshipResult.java b/src/main/java/org/stellar/sdk/xdr/RevokeSponsorshipResult.java index 930edd8f3..f8b7254d4 100644 --- a/src/main/java/org/stellar/sdk/xdr/RevokeSponsorshipResult.java +++ b/src/main/java/org/stellar/sdk/xdr/RevokeSponsorshipResult.java @@ -33,6 +33,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class RevokeSponsorshipResult implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private RevokeSponsorshipResultCode discriminant; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCAddress.java b/src/main/java/org/stellar/sdk/xdr/SCAddress.java index 92133ae2a..76b0f874f 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCAddress.java +++ b/src/main/java/org/stellar/sdk/xdr/SCAddress.java @@ -37,11 +37,52 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCAddress implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private SCAddressType discriminant; + + /** + * Value of the {@code accountId} field. + * + * @param accountId the {@code accountId} field value + * @return the {@code accountId} field value + */ private AccountID accountId; + + /** + * Value of the {@code contractId} field. + * + * @param contractId the {@code contractId} field value + * @return the {@code contractId} field value + */ private ContractID contractId; + + /** + * Value of the {@code muxedAccount} field. + * + * @param muxedAccount the {@code muxedAccount} field value + * @return the {@code muxedAccount} field value + */ private MuxedEd25519Account muxedAccount; + + /** + * Value of the {@code claimableBalanceId} field. + * + * @param claimableBalanceId the {@code claimableBalanceId} field value + * @return the {@code claimableBalanceId} field value + */ private ClaimableBalanceID claimableBalanceId; + + /** + * Value of the {@code liquidityPoolId} field. + * + * @param liquidityPoolId the {@code liquidityPoolId} field value + * @return the {@code liquidityPoolId} field value + */ private PoolID liquidityPoolId; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCBytes.java b/src/main/java/org/stellar/sdk/xdr/SCBytes.java index f4385143f..6436f7eca 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCBytes.java +++ b/src/main/java/org/stellar/sdk/xdr/SCBytes.java @@ -21,6 +21,12 @@ @NoArgsConstructor @AllArgsConstructor public class SCBytes implements XdrElement { + /** + * Value of the {@code SCBytes} field. + * + * @param SCBytes the {@code SCBytes} field value + * @return the {@code SCBytes} field value + */ private byte[] SCBytes; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCContractInstance.java b/src/main/java/org/stellar/sdk/xdr/SCContractInstance.java index 7b9f38f2e..aa2c400a6 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCContractInstance.java +++ b/src/main/java/org/stellar/sdk/xdr/SCContractInstance.java @@ -27,7 +27,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCContractInstance implements XdrElement { + /** + * Value of the {@code executable} field. + * + * @param executable the {@code executable} field value + * @return the {@code executable} field value + */ private ContractExecutable executable; + + /** + * Value of the {@code storage} field. + * + * @param storage the {@code storage} field value + * @return the {@code storage} field value + */ private SCMap storage; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCEnvMetaEntry.java b/src/main/java/org/stellar/sdk/xdr/SCEnvMetaEntry.java index 5a92f72b6..704f59463 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCEnvMetaEntry.java +++ b/src/main/java/org/stellar/sdk/xdr/SCEnvMetaEntry.java @@ -31,7 +31,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCEnvMetaEntry implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private SCEnvMetaKind discriminant; + + /** + * Value of the {@code interfaceVersion} field. + * + * @param interfaceVersion the {@code interfaceVersion} field value + * @return the {@code interfaceVersion} field value + */ private SCEnvMetaEntryInterfaceVersion interfaceVersion; public void encode(XdrDataOutputStream stream) throws IOException { @@ -135,7 +148,20 @@ static SCEnvMetaEntry fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class SCEnvMetaEntryInterfaceVersion implements XdrElement { + /** + * Value of the {@code protocol} field. + * + * @param protocol the {@code protocol} field value + * @return the {@code protocol} field value + */ private Uint32 protocol; + + /** + * Value of the {@code preRelease} field. + * + * @param preRelease the {@code preRelease} field value + * @return the {@code preRelease} field value + */ private Uint32 preRelease; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCError.java b/src/main/java/org/stellar/sdk/xdr/SCError.java index e494690b4..ed6987e30 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCError.java +++ b/src/main/java/org/stellar/sdk/xdr/SCError.java @@ -38,8 +38,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCError implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private SCErrorType discriminant; + + /** + * Value of the {@code contractCode} field. + * + * @param contractCode the {@code contractCode} field value + * @return the {@code contractCode} field value + */ private Uint32 contractCode; + + /** + * Value of the {@code code} field. + * + * @param code the {@code code} field value + * @return the {@code code} field value + */ private SCErrorCode code; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCMap.java b/src/main/java/org/stellar/sdk/xdr/SCMap.java index ca7aaec76..18baca163 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCMap.java +++ b/src/main/java/org/stellar/sdk/xdr/SCMap.java @@ -22,6 +22,12 @@ @NoArgsConstructor @AllArgsConstructor public class SCMap implements XdrElement { + /** + * Value of the {@code SCMap} field. + * + * @param SCMap the {@code SCMap} field value + * @return the {@code SCMap} field value + */ private SCMapEntry[] SCMap; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCMapEntry.java b/src/main/java/org/stellar/sdk/xdr/SCMapEntry.java index abf408c06..f4bce5400 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCMapEntry.java +++ b/src/main/java/org/stellar/sdk/xdr/SCMapEntry.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCMapEntry implements XdrElement { + /** + * Value of the {@code key} field. + * + * @param key the {@code key} field value + * @return the {@code key} field value + */ private SCVal key; + + /** + * Value of the {@code val} field. + * + * @param val the {@code val} field value + * @return the {@code val} field value + */ private SCVal val; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCMetaEntry.java b/src/main/java/org/stellar/sdk/xdr/SCMetaEntry.java index e4bc02d4d..873d5e4e6 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCMetaEntry.java +++ b/src/main/java/org/stellar/sdk/xdr/SCMetaEntry.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCMetaEntry implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private SCMetaKind discriminant; + + /** + * Value of the {@code v0} field. + * + * @param v0 the {@code v0} field value + * @return the {@code v0} field value + */ private SCMetaV0 v0; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCMetaV0.java b/src/main/java/org/stellar/sdk/xdr/SCMetaV0.java index 49883bdd7..678da155e 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCMetaV0.java +++ b/src/main/java/org/stellar/sdk/xdr/SCMetaV0.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCMetaV0 implements XdrElement { + /** + * Value of the {@code key} field. + * + * @param key the {@code key} field value + * @return the {@code key} field value + */ private XdrString key; + + /** + * Value of the {@code val} field. + * + * @param val the {@code val} field value + * @return the {@code val} field value + */ private XdrString val; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCNonceKey.java b/src/main/java/org/stellar/sdk/xdr/SCNonceKey.java index 9ea8c94fe..fbf6679e8 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCNonceKey.java +++ b/src/main/java/org/stellar/sdk/xdr/SCNonceKey.java @@ -26,6 +26,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCNonceKey implements XdrElement { + /** + * Value of the {@code nonce} field. + * + * @param nonce the {@code nonce} field value + * @return the {@code nonce} field value + */ private Int64 nonce; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCPBallot.java b/src/main/java/org/stellar/sdk/xdr/SCPBallot.java index aadd4c5b8..7073d8b7d 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCPBallot.java +++ b/src/main/java/org/stellar/sdk/xdr/SCPBallot.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCPBallot implements XdrElement { + /** + * Value of the {@code counter} field. + * + * @param counter the {@code counter} field value + * @return the {@code counter} field value + */ private Uint32 counter; + + /** + * Value of the {@code value} field. + * + * @param value the {@code value} field value + * @return the {@code value} field value + */ private Value value; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCPEnvelope.java b/src/main/java/org/stellar/sdk/xdr/SCPEnvelope.java index 1b078ac93..ff064dc70 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCPEnvelope.java +++ b/src/main/java/org/stellar/sdk/xdr/SCPEnvelope.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCPEnvelope implements XdrElement { + /** + * Value of the {@code statement} field. + * + * @param statement the {@code statement} field value + * @return the {@code statement} field value + */ private SCPStatement statement; + + /** + * Value of the {@code signature} field. + * + * @param signature the {@code signature} field value + * @return the {@code signature} field value + */ private Signature signature; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCPHistoryEntry.java b/src/main/java/org/stellar/sdk/xdr/SCPHistoryEntry.java index 934e1a5c3..83a1bfcb9 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCPHistoryEntry.java +++ b/src/main/java/org/stellar/sdk/xdr/SCPHistoryEntry.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCPHistoryEntry implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; + + /** + * Value of the {@code v0} field. + * + * @param v0 the {@code v0} field value + * @return the {@code v0} field value + */ private SCPHistoryEntryV0 v0; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCPHistoryEntryV0.java b/src/main/java/org/stellar/sdk/xdr/SCPHistoryEntryV0.java index d987ef89c..056ea3f90 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCPHistoryEntryV0.java +++ b/src/main/java/org/stellar/sdk/xdr/SCPHistoryEntryV0.java @@ -29,7 +29,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCPHistoryEntryV0 implements XdrElement { + /** + * Value of the {@code quorumSets} field. + * + * @param quorumSets the {@code quorumSets} field value + * @return the {@code quorumSets} field value + */ private SCPQuorumSet[] quorumSets; + + /** + * Value of the {@code ledgerMessages} field. + * + * @param ledgerMessages the {@code ledgerMessages} field value + * @return the {@code ledgerMessages} field value + */ private LedgerSCPMessages ledgerMessages; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCPNomination.java b/src/main/java/org/stellar/sdk/xdr/SCPNomination.java index f7c7dc9d7..6f621c59d 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCPNomination.java +++ b/src/main/java/org/stellar/sdk/xdr/SCPNomination.java @@ -30,8 +30,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCPNomination implements XdrElement { + /** + * Value of the {@code quorumSetHash} field. + * + * @param quorumSetHash the {@code quorumSetHash} field value + * @return the {@code quorumSetHash} field value + */ private Hash quorumSetHash; + + /** + * Value of the {@code votes} field. + * + * @param votes the {@code votes} field value + * @return the {@code votes} field value + */ private Value[] votes; + + /** + * Value of the {@code accepted} field. + * + * @param accepted the {@code accepted} field value + * @return the {@code accepted} field value + */ private Value[] accepted; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCPQuorumSet.java b/src/main/java/org/stellar/sdk/xdr/SCPQuorumSet.java index 9d5054dbe..c68fd3b02 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCPQuorumSet.java +++ b/src/main/java/org/stellar/sdk/xdr/SCPQuorumSet.java @@ -30,8 +30,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCPQuorumSet implements XdrElement { + /** + * Value of the {@code threshold} field. + * + * @param threshold the {@code threshold} field value + * @return the {@code threshold} field value + */ private Uint32 threshold; + + /** + * Value of the {@code validators} field. + * + * @param validators the {@code validators} field value + * @return the {@code validators} field value + */ private NodeID[] validators; + + /** + * Value of the {@code innerSets} field. + * + * @param innerSets the {@code innerSets} field value + * @return the {@code innerSets} field value + */ private SCPQuorumSet[] innerSets; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCPStatement.java b/src/main/java/org/stellar/sdk/xdr/SCPStatement.java index c529b89d5..c26b95ea8 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCPStatement.java +++ b/src/main/java/org/stellar/sdk/xdr/SCPStatement.java @@ -61,8 +61,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCPStatement implements XdrElement { + /** + * Value of the {@code nodeID} field. + * + * @param nodeID the {@code nodeID} field value + * @return the {@code nodeID} field value + */ private NodeID nodeID; + + /** + * Value of the {@code slotIndex} field. + * + * @param slotIndex the {@code slotIndex} field value + * @return the {@code slotIndex} field value + */ private Uint64 slotIndex; + + /** + * Value of the {@code pledges} field. + * + * @param pledges the {@code pledges} field value + * @return the {@code pledges} field value + */ private SCPStatementPledges pledges; public void encode(XdrDataOutputStream stream) throws IOException { @@ -168,10 +188,44 @@ static SCPStatement fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class SCPStatementPledges implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private SCPStatementType discriminant; + + /** + * Value of the {@code prepare} field. + * + * @param prepare the {@code prepare} field value + * @return the {@code prepare} field value + */ private SCPStatementPrepare prepare; + + /** + * Value of the {@code confirm} field. + * + * @param confirm the {@code confirm} field value + * @return the {@code confirm} field value + */ private SCPStatementConfirm confirm; + + /** + * Value of the {@code externalize} field. + * + * @param externalize the {@code externalize} field value + * @return the {@code externalize} field value + */ private SCPStatementExternalize externalize; + + /** + * Value of the {@code nominate} field. + * + * @param nominate the {@code nominate} field value + * @return the {@code nominate} field value + */ private SCPNomination nominate; public void encode(XdrDataOutputStream stream) throws IOException { @@ -329,11 +383,52 @@ static SCPStatementPledges fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class SCPStatementPrepare implements XdrElement { + /** + * Value of the {@code quorumSetHash} field. + * + * @param quorumSetHash the {@code quorumSetHash} field value + * @return the {@code quorumSetHash} field value + */ private Hash quorumSetHash; + + /** + * Value of the {@code ballot} field. + * + * @param ballot the {@code ballot} field value + * @return the {@code ballot} field value + */ private SCPBallot ballot; + + /** + * Value of the {@code prepared} field. + * + * @param prepared the {@code prepared} field value + * @return the {@code prepared} field value + */ private SCPBallot prepared; + + /** + * Value of the {@code preparedPrime} field. + * + * @param preparedPrime the {@code preparedPrime} field value + * @return the {@code preparedPrime} field value + */ private SCPBallot preparedPrime; + + /** + * Value of the {@code nC} field. + * + * @param nC the {@code nC} field value + * @return the {@code nC} field value + */ private Uint32 nC; + + /** + * Value of the {@code nH} field. + * + * @param nH the {@code nH} field value + * @return the {@code nH} field value + */ private Uint32 nH; public void encode(XdrDataOutputStream stream) throws IOException { @@ -452,10 +547,44 @@ static SCPStatementPrepare fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class SCPStatementConfirm implements XdrElement { + /** + * Value of the {@code ballot} field. + * + * @param ballot the {@code ballot} field value + * @return the {@code ballot} field value + */ private SCPBallot ballot; + + /** + * Value of the {@code nPrepared} field. + * + * @param nPrepared the {@code nPrepared} field value + * @return the {@code nPrepared} field value + */ private Uint32 nPrepared; + + /** + * Value of the {@code nCommit} field. + * + * @param nCommit the {@code nCommit} field value + * @return the {@code nCommit} field value + */ private Uint32 nCommit; + + /** + * Value of the {@code nH} field. + * + * @param nH the {@code nH} field value + * @return the {@code nH} field value + */ private Uint32 nH; + + /** + * Value of the {@code quorumSetHash} field. + * + * @param quorumSetHash the {@code quorumSetHash} field value + * @return the {@code quorumSetHash} field value + */ private Hash quorumSetHash; public void encode(XdrDataOutputStream stream) throws IOException { @@ -546,8 +675,28 @@ static SCPStatementConfirm fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class SCPStatementExternalize implements XdrElement { + /** + * Value of the {@code commit} field. + * + * @param commit the {@code commit} field value + * @return the {@code commit} field value + */ private SCPBallot commit; + + /** + * Value of the {@code nH} field. + * + * @param nH the {@code nH} field value + * @return the {@code nH} field value + */ private Uint32 nH; + + /** + * Value of the {@code commitQuorumSetHash} field. + * + * @param commitQuorumSetHash the {@code commitQuorumSetHash} field value + * @return the {@code commitQuorumSetHash} field value + */ private Hash commitQuorumSetHash; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCSpecEntry.java b/src/main/java/org/stellar/sdk/xdr/SCSpecEntry.java index f4b45b506..e77619f01 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCSpecEntry.java +++ b/src/main/java/org/stellar/sdk/xdr/SCSpecEntry.java @@ -38,12 +38,60 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCSpecEntry implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private SCSpecEntryKind discriminant; + + /** + * Value of the {@code functionV0} field. + * + * @param functionV0 the {@code functionV0} field value + * @return the {@code functionV0} field value + */ private SCSpecFunctionV0 functionV0; + + /** + * Value of the {@code udtStructV0} field. + * + * @param udtStructV0 the {@code udtStructV0} field value + * @return the {@code udtStructV0} field value + */ private SCSpecUDTStructV0 udtStructV0; + + /** + * Value of the {@code udtUnionV0} field. + * + * @param udtUnionV0 the {@code udtUnionV0} field value + * @return the {@code udtUnionV0} field value + */ private SCSpecUDTUnionV0 udtUnionV0; + + /** + * Value of the {@code udtEnumV0} field. + * + * @param udtEnumV0 the {@code udtEnumV0} field value + * @return the {@code udtEnumV0} field value + */ private SCSpecUDTEnumV0 udtEnumV0; + + /** + * Value of the {@code udtErrorEnumV0} field. + * + * @param udtErrorEnumV0 the {@code udtErrorEnumV0} field value + * @return the {@code udtErrorEnumV0} field value + */ private SCSpecUDTErrorEnumV0 udtErrorEnumV0; + + /** + * Value of the {@code eventV0} field. + * + * @param eventV0 the {@code eventV0} field value + * @return the {@code eventV0} field value + */ private SCSpecEventV0 eventV0; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCSpecEventParamV0.java b/src/main/java/org/stellar/sdk/xdr/SCSpecEventParamV0.java index eb859d7f4..39a7cc027 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCSpecEventParamV0.java +++ b/src/main/java/org/stellar/sdk/xdr/SCSpecEventParamV0.java @@ -30,9 +30,36 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCSpecEventParamV0 implements XdrElement { + /** + * Value of the {@code doc} field. + * + * @param doc the {@code doc} field value + * @return the {@code doc} field value + */ private XdrString doc; + + /** + * Value of the {@code name} field. + * + * @param name the {@code name} field value + * @return the {@code name} field value + */ private XdrString name; + + /** + * Value of the {@code type} field. + * + * @param type the {@code type} field value + * @return the {@code type} field value + */ private SCSpecTypeDef type; + + /** + * Value of the {@code location} field. + * + * @param location the {@code location} field value + * @return the {@code location} field value + */ private SCSpecEventParamLocationV0 location; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCSpecEventV0.java b/src/main/java/org/stellar/sdk/xdr/SCSpecEventV0.java index fd8bcde8c..96e7a9162 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCSpecEventV0.java +++ b/src/main/java/org/stellar/sdk/xdr/SCSpecEventV0.java @@ -33,11 +33,52 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCSpecEventV0 implements XdrElement { + /** + * Value of the {@code doc} field. + * + * @param doc the {@code doc} field value + * @return the {@code doc} field value + */ private XdrString doc; + + /** + * Value of the {@code lib} field. + * + * @param lib the {@code lib} field value + * @return the {@code lib} field value + */ private XdrString lib; + + /** + * Value of the {@code name} field. + * + * @param name the {@code name} field value + * @return the {@code name} field value + */ private SCSymbol name; + + /** + * Value of the {@code prefixTopics} field. + * + * @param prefixTopics the {@code prefixTopics} field value + * @return the {@code prefixTopics} field value + */ private SCSymbol[] prefixTopics; + + /** + * Value of the {@code params} field. + * + * @param params the {@code params} field value + * @return the {@code params} field value + */ private SCSpecEventParamV0[] params; + + /** + * Value of the {@code dataFormat} field. + * + * @param dataFormat the {@code dataFormat} field value + * @return the {@code dataFormat} field value + */ private SCSpecEventDataFormat dataFormat; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCSpecFunctionInputV0.java b/src/main/java/org/stellar/sdk/xdr/SCSpecFunctionInputV0.java index a3b4dcb34..dc73d8be4 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCSpecFunctionInputV0.java +++ b/src/main/java/org/stellar/sdk/xdr/SCSpecFunctionInputV0.java @@ -29,8 +29,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCSpecFunctionInputV0 implements XdrElement { + /** + * Value of the {@code doc} field. + * + * @param doc the {@code doc} field value + * @return the {@code doc} field value + */ private XdrString doc; + + /** + * Value of the {@code name} field. + * + * @param name the {@code name} field value + * @return the {@code name} field value + */ private XdrString name; + + /** + * Value of the {@code type} field. + * + * @param type the {@code type} field value + * @return the {@code type} field value + */ private SCSpecTypeDef type; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCSpecFunctionV0.java b/src/main/java/org/stellar/sdk/xdr/SCSpecFunctionV0.java index d93feb943..7bd69f961 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCSpecFunctionV0.java +++ b/src/main/java/org/stellar/sdk/xdr/SCSpecFunctionV0.java @@ -31,9 +31,36 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCSpecFunctionV0 implements XdrElement { + /** + * Value of the {@code doc} field. + * + * @param doc the {@code doc} field value + * @return the {@code doc} field value + */ private XdrString doc; + + /** + * Value of the {@code name} field. + * + * @param name the {@code name} field value + * @return the {@code name} field value + */ private SCSymbol name; + + /** + * Value of the {@code inputs} field. + * + * @param inputs the {@code inputs} field value + * @return the {@code inputs} field value + */ private SCSpecFunctionInputV0[] inputs; + + /** + * Value of the {@code outputs} field. + * + * @param outputs the {@code outputs} field value + * @return the {@code outputs} field value + */ private SCSpecTypeDef[] outputs; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCSpecTypeBytesN.java b/src/main/java/org/stellar/sdk/xdr/SCSpecTypeBytesN.java index 197cc6c3e..94f9f84dd 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCSpecTypeBytesN.java +++ b/src/main/java/org/stellar/sdk/xdr/SCSpecTypeBytesN.java @@ -27,6 +27,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCSpecTypeBytesN implements XdrElement { + /** + * Value of the {@code n} field. + * + * @param n the {@code n} field value + * @return the {@code n} field value + */ private Uint32 n; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCSpecTypeDef.java b/src/main/java/org/stellar/sdk/xdr/SCSpecTypeDef.java index 79845139f..c8eee5d09 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCSpecTypeDef.java +++ b/src/main/java/org/stellar/sdk/xdr/SCSpecTypeDef.java @@ -60,13 +60,68 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCSpecTypeDef implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private SCSpecType discriminant; + + /** + * Value of the {@code option} field. + * + * @param option the {@code option} field value + * @return the {@code option} field value + */ private SCSpecTypeOption option; + + /** + * Value of the {@code result} field. + * + * @param result the {@code result} field value + * @return the {@code result} field value + */ private SCSpecTypeResult result; + + /** + * Value of the {@code vec} field. + * + * @param vec the {@code vec} field value + * @return the {@code vec} field value + */ private SCSpecTypeVec vec; + + /** + * Value of the {@code map} field. + * + * @param map the {@code map} field value + * @return the {@code map} field value + */ private SCSpecTypeMap map; + + /** + * Value of the {@code tuple} field. + * + * @param tuple the {@code tuple} field value + * @return the {@code tuple} field value + */ private SCSpecTypeTuple tuple; + + /** + * Value of the {@code bytesN} field. + * + * @param bytesN the {@code bytesN} field value + * @return the {@code bytesN} field value + */ private SCSpecTypeBytesN bytesN; + + /** + * Value of the {@code udt} field. + * + * @param udt the {@code udt} field value + * @return the {@code udt} field value + */ private SCSpecTypeUDT udt; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCSpecTypeMap.java b/src/main/java/org/stellar/sdk/xdr/SCSpecTypeMap.java index a8e26352d..68583ad9d 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCSpecTypeMap.java +++ b/src/main/java/org/stellar/sdk/xdr/SCSpecTypeMap.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCSpecTypeMap implements XdrElement { + /** + * Value of the {@code keyType} field. + * + * @param keyType the {@code keyType} field value + * @return the {@code keyType} field value + */ private SCSpecTypeDef keyType; + + /** + * Value of the {@code valueType} field. + * + * @param valueType the {@code valueType} field value + * @return the {@code valueType} field value + */ private SCSpecTypeDef valueType; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCSpecTypeOption.java b/src/main/java/org/stellar/sdk/xdr/SCSpecTypeOption.java index 3517d304c..9c3d20302 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCSpecTypeOption.java +++ b/src/main/java/org/stellar/sdk/xdr/SCSpecTypeOption.java @@ -27,6 +27,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCSpecTypeOption implements XdrElement { + /** + * Value of the {@code valueType} field. + * + * @param valueType the {@code valueType} field value + * @return the {@code valueType} field value + */ private SCSpecTypeDef valueType; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCSpecTypeResult.java b/src/main/java/org/stellar/sdk/xdr/SCSpecTypeResult.java index 3ae3883e3..2d324ee86 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCSpecTypeResult.java +++ b/src/main/java/org/stellar/sdk/xdr/SCSpecTypeResult.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCSpecTypeResult implements XdrElement { + /** + * Value of the {@code okType} field. + * + * @param okType the {@code okType} field value + * @return the {@code okType} field value + */ private SCSpecTypeDef okType; + + /** + * Value of the {@code errorType} field. + * + * @param errorType the {@code errorType} field value + * @return the {@code errorType} field value + */ private SCSpecTypeDef errorType; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCSpecTypeTuple.java b/src/main/java/org/stellar/sdk/xdr/SCSpecTypeTuple.java index 3066ae1b0..c463fa1ee 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCSpecTypeTuple.java +++ b/src/main/java/org/stellar/sdk/xdr/SCSpecTypeTuple.java @@ -28,6 +28,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCSpecTypeTuple implements XdrElement { + /** + * Value of the {@code valueTypes} field. + * + * @param valueTypes the {@code valueTypes} field value + * @return the {@code valueTypes} field value + */ private SCSpecTypeDef[] valueTypes; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCSpecTypeUDT.java b/src/main/java/org/stellar/sdk/xdr/SCSpecTypeUDT.java index b03c009e6..e0eedac3c 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCSpecTypeUDT.java +++ b/src/main/java/org/stellar/sdk/xdr/SCSpecTypeUDT.java @@ -27,6 +27,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCSpecTypeUDT implements XdrElement { + /** + * Value of the {@code name} field. + * + * @param name the {@code name} field value + * @return the {@code name} field value + */ private XdrString name; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCSpecTypeVec.java b/src/main/java/org/stellar/sdk/xdr/SCSpecTypeVec.java index 554f13a4a..fa947c840 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCSpecTypeVec.java +++ b/src/main/java/org/stellar/sdk/xdr/SCSpecTypeVec.java @@ -27,6 +27,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCSpecTypeVec implements XdrElement { + /** + * Value of the {@code elementType} field. + * + * @param elementType the {@code elementType} field value + * @return the {@code elementType} field value + */ private SCSpecTypeDef elementType; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCSpecUDTEnumCaseV0.java b/src/main/java/org/stellar/sdk/xdr/SCSpecUDTEnumCaseV0.java index 0e4bb1e9b..1310c409d 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCSpecUDTEnumCaseV0.java +++ b/src/main/java/org/stellar/sdk/xdr/SCSpecUDTEnumCaseV0.java @@ -29,8 +29,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCSpecUDTEnumCaseV0 implements XdrElement { + /** + * Value of the {@code doc} field. + * + * @param doc the {@code doc} field value + * @return the {@code doc} field value + */ private XdrString doc; + + /** + * Value of the {@code name} field. + * + * @param name the {@code name} field value + * @return the {@code name} field value + */ private XdrString name; + + /** + * Value of the {@code value} field. + * + * @param value the {@code value} field value + * @return the {@code value} field value + */ private Uint32 value; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCSpecUDTEnumV0.java b/src/main/java/org/stellar/sdk/xdr/SCSpecUDTEnumV0.java index 6f229c6fe..0b870bb4c 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCSpecUDTEnumV0.java +++ b/src/main/java/org/stellar/sdk/xdr/SCSpecUDTEnumV0.java @@ -31,9 +31,36 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCSpecUDTEnumV0 implements XdrElement { + /** + * Value of the {@code doc} field. + * + * @param doc the {@code doc} field value + * @return the {@code doc} field value + */ private XdrString doc; + + /** + * Value of the {@code lib} field. + * + * @param lib the {@code lib} field value + * @return the {@code lib} field value + */ private XdrString lib; + + /** + * Value of the {@code name} field. + * + * @param name the {@code name} field value + * @return the {@code name} field value + */ private XdrString name; + + /** + * Value of the {@code cases} field. + * + * @param cases the {@code cases} field value + * @return the {@code cases} field value + */ private SCSpecUDTEnumCaseV0[] cases; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCSpecUDTErrorEnumCaseV0.java b/src/main/java/org/stellar/sdk/xdr/SCSpecUDTErrorEnumCaseV0.java index bb17e9443..0ab5646f4 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCSpecUDTErrorEnumCaseV0.java +++ b/src/main/java/org/stellar/sdk/xdr/SCSpecUDTErrorEnumCaseV0.java @@ -29,8 +29,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCSpecUDTErrorEnumCaseV0 implements XdrElement { + /** + * Value of the {@code doc} field. + * + * @param doc the {@code doc} field value + * @return the {@code doc} field value + */ private XdrString doc; + + /** + * Value of the {@code name} field. + * + * @param name the {@code name} field value + * @return the {@code name} field value + */ private XdrString name; + + /** + * Value of the {@code value} field. + * + * @param value the {@code value} field value + * @return the {@code value} field value + */ private Uint32 value; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCSpecUDTErrorEnumV0.java b/src/main/java/org/stellar/sdk/xdr/SCSpecUDTErrorEnumV0.java index 94521dab8..e962762c5 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCSpecUDTErrorEnumV0.java +++ b/src/main/java/org/stellar/sdk/xdr/SCSpecUDTErrorEnumV0.java @@ -31,9 +31,36 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCSpecUDTErrorEnumV0 implements XdrElement { + /** + * Value of the {@code doc} field. + * + * @param doc the {@code doc} field value + * @return the {@code doc} field value + */ private XdrString doc; + + /** + * Value of the {@code lib} field. + * + * @param lib the {@code lib} field value + * @return the {@code lib} field value + */ private XdrString lib; + + /** + * Value of the {@code name} field. + * + * @param name the {@code name} field value + * @return the {@code name} field value + */ private XdrString name; + + /** + * Value of the {@code cases} field. + * + * @param cases the {@code cases} field value + * @return the {@code cases} field value + */ private SCSpecUDTErrorEnumCaseV0[] cases; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCSpecUDTStructFieldV0.java b/src/main/java/org/stellar/sdk/xdr/SCSpecUDTStructFieldV0.java index 26f649bdc..12e200029 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCSpecUDTStructFieldV0.java +++ b/src/main/java/org/stellar/sdk/xdr/SCSpecUDTStructFieldV0.java @@ -29,8 +29,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCSpecUDTStructFieldV0 implements XdrElement { + /** + * Value of the {@code doc} field. + * + * @param doc the {@code doc} field value + * @return the {@code doc} field value + */ private XdrString doc; + + /** + * Value of the {@code name} field. + * + * @param name the {@code name} field value + * @return the {@code name} field value + */ private XdrString name; + + /** + * Value of the {@code type} field. + * + * @param type the {@code type} field value + * @return the {@code type} field value + */ private SCSpecTypeDef type; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCSpecUDTStructV0.java b/src/main/java/org/stellar/sdk/xdr/SCSpecUDTStructV0.java index a1b73e5e8..d17f8b562 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCSpecUDTStructV0.java +++ b/src/main/java/org/stellar/sdk/xdr/SCSpecUDTStructV0.java @@ -31,9 +31,36 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCSpecUDTStructV0 implements XdrElement { + /** + * Value of the {@code doc} field. + * + * @param doc the {@code doc} field value + * @return the {@code doc} field value + */ private XdrString doc; + + /** + * Value of the {@code lib} field. + * + * @param lib the {@code lib} field value + * @return the {@code lib} field value + */ private XdrString lib; + + /** + * Value of the {@code name} field. + * + * @param name the {@code name} field value + * @return the {@code name} field value + */ private XdrString name; + + /** + * Value of the {@code fields} field. + * + * @param fields the {@code fields} field value + * @return the {@code fields} field value + */ private SCSpecUDTStructFieldV0[] fields; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCSpecUDTUnionCaseTupleV0.java b/src/main/java/org/stellar/sdk/xdr/SCSpecUDTUnionCaseTupleV0.java index 88f1c5d86..09a637385 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCSpecUDTUnionCaseTupleV0.java +++ b/src/main/java/org/stellar/sdk/xdr/SCSpecUDTUnionCaseTupleV0.java @@ -30,8 +30,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCSpecUDTUnionCaseTupleV0 implements XdrElement { + /** + * Value of the {@code doc} field. + * + * @param doc the {@code doc} field value + * @return the {@code doc} field value + */ private XdrString doc; + + /** + * Value of the {@code name} field. + * + * @param name the {@code name} field value + * @return the {@code name} field value + */ private XdrString name; + + /** + * Value of the {@code type} field. + * + * @param type the {@code type} field value + * @return the {@code type} field value + */ private SCSpecTypeDef[] type; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCSpecUDTUnionCaseV0.java b/src/main/java/org/stellar/sdk/xdr/SCSpecUDTUnionCaseV0.java index e551324ae..5702aa62f 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCSpecUDTUnionCaseV0.java +++ b/src/main/java/org/stellar/sdk/xdr/SCSpecUDTUnionCaseV0.java @@ -30,8 +30,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCSpecUDTUnionCaseV0 implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private SCSpecUDTUnionCaseV0Kind discriminant; + + /** + * Value of the {@code voidCase} field. + * + * @param voidCase the {@code voidCase} field value + * @return the {@code voidCase} field value + */ private SCSpecUDTUnionCaseVoidV0 voidCase; + + /** + * Value of the {@code tupleCase} field. + * + * @param tupleCase the {@code tupleCase} field value + * @return the {@code tupleCase} field value + */ private SCSpecUDTUnionCaseTupleV0 tupleCase; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCSpecUDTUnionCaseVoidV0.java b/src/main/java/org/stellar/sdk/xdr/SCSpecUDTUnionCaseVoidV0.java index 0f6c98e40..c0bb74848 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCSpecUDTUnionCaseVoidV0.java +++ b/src/main/java/org/stellar/sdk/xdr/SCSpecUDTUnionCaseVoidV0.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCSpecUDTUnionCaseVoidV0 implements XdrElement { + /** + * Value of the {@code doc} field. + * + * @param doc the {@code doc} field value + * @return the {@code doc} field value + */ private XdrString doc; + + /** + * Value of the {@code name} field. + * + * @param name the {@code name} field value + * @return the {@code name} field value + */ private XdrString name; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCSpecUDTUnionV0.java b/src/main/java/org/stellar/sdk/xdr/SCSpecUDTUnionV0.java index 95ac3eeee..a39b89676 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCSpecUDTUnionV0.java +++ b/src/main/java/org/stellar/sdk/xdr/SCSpecUDTUnionV0.java @@ -31,9 +31,36 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCSpecUDTUnionV0 implements XdrElement { + /** + * Value of the {@code doc} field. + * + * @param doc the {@code doc} field value + * @return the {@code doc} field value + */ private XdrString doc; + + /** + * Value of the {@code lib} field. + * + * @param lib the {@code lib} field value + * @return the {@code lib} field value + */ private XdrString lib; + + /** + * Value of the {@code name} field. + * + * @param name the {@code name} field value + * @return the {@code name} field value + */ private XdrString name; + + /** + * Value of the {@code cases} field. + * + * @param cases the {@code cases} field value + * @return the {@code cases} field value + */ private SCSpecUDTUnionCaseV0[] cases; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCString.java b/src/main/java/org/stellar/sdk/xdr/SCString.java index 377ee9051..e945af84a 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCString.java +++ b/src/main/java/org/stellar/sdk/xdr/SCString.java @@ -21,6 +21,12 @@ @NoArgsConstructor @AllArgsConstructor public class SCString implements XdrElement { + /** + * Value of the {@code SCString} field. + * + * @param SCString the {@code SCString} field value + * @return the {@code SCString} field value + */ private XdrString SCString; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCSymbol.java b/src/main/java/org/stellar/sdk/xdr/SCSymbol.java index c44fa721f..647e77acb 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCSymbol.java +++ b/src/main/java/org/stellar/sdk/xdr/SCSymbol.java @@ -21,6 +21,12 @@ @NoArgsConstructor @AllArgsConstructor public class SCSymbol implements XdrElement { + /** + * Value of the {@code SCSymbol} field. + * + * @param SCSymbol the {@code SCSymbol} field value + * @return the {@code SCSymbol} field value + */ private XdrString SCSymbol; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCVal.java b/src/main/java/org/stellar/sdk/xdr/SCVal.java index d2ab61afd..55c0e830c 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCVal.java +++ b/src/main/java/org/stellar/sdk/xdr/SCVal.java @@ -83,26 +83,172 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SCVal implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private SCValType discriminant; + + /** + * Value of the {@code b} field. + * + * @param b the {@code b} field value + * @return the {@code b} field value + */ private Boolean b; + + /** + * Value of the {@code error} field. + * + * @param error the {@code error} field value + * @return the {@code error} field value + */ private SCError error; + + /** + * Value of the {@code u32} field. + * + * @param u32 the {@code u32} field value + * @return the {@code u32} field value + */ private Uint32 u32; + + /** + * Value of the {@code i32} field. + * + * @param i32 the {@code i32} field value + * @return the {@code i32} field value + */ private Int32 i32; + + /** + * Value of the {@code u64} field. + * + * @param u64 the {@code u64} field value + * @return the {@code u64} field value + */ private Uint64 u64; + + /** + * Value of the {@code i64} field. + * + * @param i64 the {@code i64} field value + * @return the {@code i64} field value + */ private Int64 i64; + + /** + * Value of the {@code timepoint} field. + * + * @param timepoint the {@code timepoint} field value + * @return the {@code timepoint} field value + */ private TimePoint timepoint; + + /** + * Value of the {@code duration} field. + * + * @param duration the {@code duration} field value + * @return the {@code duration} field value + */ private Duration duration; + + /** + * Value of the {@code u128} field. + * + * @param u128 the {@code u128} field value + * @return the {@code u128} field value + */ private UInt128Parts u128; + + /** + * Value of the {@code i128} field. + * + * @param i128 the {@code i128} field value + * @return the {@code i128} field value + */ private Int128Parts i128; + + /** + * Value of the {@code u256} field. + * + * @param u256 the {@code u256} field value + * @return the {@code u256} field value + */ private UInt256Parts u256; + + /** + * Value of the {@code i256} field. + * + * @param i256 the {@code i256} field value + * @return the {@code i256} field value + */ private Int256Parts i256; + + /** + * Value of the {@code bytes} field. + * + * @param bytes the {@code bytes} field value + * @return the {@code bytes} field value + */ private SCBytes bytes; + + /** + * Value of the {@code str} field. + * + * @param str the {@code str} field value + * @return the {@code str} field value + */ private SCString str; + + /** + * Value of the {@code sym} field. + * + * @param sym the {@code sym} field value + * @return the {@code sym} field value + */ private SCSymbol sym; + + /** + * Value of the {@code vec} field. + * + * @param vec the {@code vec} field value + * @return the {@code vec} field value + */ private SCVec vec; + + /** + * Value of the {@code map} field. + * + * @param map the {@code map} field value + * @return the {@code map} field value + */ private SCMap map; + + /** + * Value of the {@code address} field. + * + * @param address the {@code address} field value + * @return the {@code address} field value + */ private SCAddress address; + + /** + * Value of the {@code instance} field. + * + * @param instance the {@code instance} field value + * @return the {@code instance} field value + */ private SCContractInstance instance; + + /** + * Value of the {@code nonce_key} field. + * + * @param nonce_key the {@code nonce_key} field value + * @return the {@code nonce_key} field value + */ private SCNonceKey nonce_key; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SCVec.java b/src/main/java/org/stellar/sdk/xdr/SCVec.java index 3109861f3..67b490b98 100644 --- a/src/main/java/org/stellar/sdk/xdr/SCVec.java +++ b/src/main/java/org/stellar/sdk/xdr/SCVec.java @@ -22,6 +22,12 @@ @NoArgsConstructor @AllArgsConstructor public class SCVec implements XdrElement { + /** + * Value of the {@code SCVec} field. + * + * @param SCVec the {@code SCVec} field value + * @return the {@code SCVec} field value + */ private SCVal[] SCVec; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SendMore.java b/src/main/java/org/stellar/sdk/xdr/SendMore.java index 653069f33..27c07220f 100644 --- a/src/main/java/org/stellar/sdk/xdr/SendMore.java +++ b/src/main/java/org/stellar/sdk/xdr/SendMore.java @@ -27,6 +27,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SendMore implements XdrElement { + /** + * Value of the {@code numMessages} field. + * + * @param numMessages the {@code numMessages} field value + * @return the {@code numMessages} field value + */ private Uint32 numMessages; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SendMoreExtended.java b/src/main/java/org/stellar/sdk/xdr/SendMoreExtended.java index b8d231747..092370d9b 100644 --- a/src/main/java/org/stellar/sdk/xdr/SendMoreExtended.java +++ b/src/main/java/org/stellar/sdk/xdr/SendMoreExtended.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SendMoreExtended implements XdrElement { + /** + * Value of the {@code numMessages} field. + * + * @param numMessages the {@code numMessages} field value + * @return the {@code numMessages} field value + */ private Uint32 numMessages; + + /** + * Value of the {@code numBytes} field. + * + * @param numBytes the {@code numBytes} field value + * @return the {@code numBytes} field value + */ private Uint32 numBytes; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SequenceNumber.java b/src/main/java/org/stellar/sdk/xdr/SequenceNumber.java index de3869d4f..806fe84c7 100644 --- a/src/main/java/org/stellar/sdk/xdr/SequenceNumber.java +++ b/src/main/java/org/stellar/sdk/xdr/SequenceNumber.java @@ -21,6 +21,12 @@ @NoArgsConstructor @AllArgsConstructor public class SequenceNumber implements XdrElement { + /** + * Value of the {@code SequenceNumber} field. + * + * @param SequenceNumber the {@code SequenceNumber} field value + * @return the {@code SequenceNumber} field value + */ private Int64 SequenceNumber; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SerializedBinaryFuseFilter.java b/src/main/java/org/stellar/sdk/xdr/SerializedBinaryFuseFilter.java index a9f941332..1eeb0b1e7 100644 --- a/src/main/java/org/stellar/sdk/xdr/SerializedBinaryFuseFilter.java +++ b/src/main/java/org/stellar/sdk/xdr/SerializedBinaryFuseFilter.java @@ -41,14 +41,76 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SerializedBinaryFuseFilter implements XdrElement { + /** + * Value of the {@code type} field. + * + * @param type the {@code type} field value + * @return the {@code type} field value + */ private BinaryFuseFilterType type; + + /** + * Value of the {@code inputHashSeed} field. + * + * @param inputHashSeed the {@code inputHashSeed} field value + * @return the {@code inputHashSeed} field value + */ private ShortHashSeed inputHashSeed; + + /** + * Value of the {@code filterSeed} field. + * + * @param filterSeed the {@code filterSeed} field value + * @return the {@code filterSeed} field value + */ private ShortHashSeed filterSeed; + + /** + * Value of the {@code segmentLength} field. + * + * @param segmentLength the {@code segmentLength} field value + * @return the {@code segmentLength} field value + */ private Uint32 segmentLength; + + /** + * Value of the {@code segementLengthMask} field. + * + * @param segementLengthMask the {@code segementLengthMask} field value + * @return the {@code segementLengthMask} field value + */ private Uint32 segementLengthMask; + + /** + * Value of the {@code segmentCount} field. + * + * @param segmentCount the {@code segmentCount} field value + * @return the {@code segmentCount} field value + */ private Uint32 segmentCount; + + /** + * Value of the {@code segmentCountLength} field. + * + * @param segmentCountLength the {@code segmentCountLength} field value + * @return the {@code segmentCountLength} field value + */ private Uint32 segmentCountLength; + + /** + * Value of the {@code fingerprintLength} field. + * + * @param fingerprintLength the {@code fingerprintLength} field value + * @return the {@code fingerprintLength} field value + */ private Uint32 fingerprintLength; + + /** + * Value of the {@code fingerprints} field. + * + * @param fingerprints the {@code fingerprints} field value + * @return the {@code fingerprints} field value + */ private byte[] fingerprints; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SetOptionsOp.java b/src/main/java/org/stellar/sdk/xdr/SetOptionsOp.java index 44687e50a..e7a0f7ef4 100644 --- a/src/main/java/org/stellar/sdk/xdr/SetOptionsOp.java +++ b/src/main/java/org/stellar/sdk/xdr/SetOptionsOp.java @@ -42,14 +42,76 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SetOptionsOp implements XdrElement { + /** + * Value of the {@code inflationDest} field. + * + * @param inflationDest the {@code inflationDest} field value + * @return the {@code inflationDest} field value + */ private AccountID inflationDest; + + /** + * Value of the {@code clearFlags} field. + * + * @param clearFlags the {@code clearFlags} field value + * @return the {@code clearFlags} field value + */ private Uint32 clearFlags; + + /** + * Value of the {@code setFlags} field. + * + * @param setFlags the {@code setFlags} field value + * @return the {@code setFlags} field value + */ private Uint32 setFlags; + + /** + * Value of the {@code masterWeight} field. + * + * @param masterWeight the {@code masterWeight} field value + * @return the {@code masterWeight} field value + */ private Uint32 masterWeight; + + /** + * Value of the {@code lowThreshold} field. + * + * @param lowThreshold the {@code lowThreshold} field value + * @return the {@code lowThreshold} field value + */ private Uint32 lowThreshold; + + /** + * Value of the {@code medThreshold} field. + * + * @param medThreshold the {@code medThreshold} field value + * @return the {@code medThreshold} field value + */ private Uint32 medThreshold; + + /** + * Value of the {@code highThreshold} field. + * + * @param highThreshold the {@code highThreshold} field value + * @return the {@code highThreshold} field value + */ private Uint32 highThreshold; + + /** + * Value of the {@code homeDomain} field. + * + * @param homeDomain the {@code homeDomain} field value + * @return the {@code homeDomain} field value + */ private String32 homeDomain; + + /** + * Value of the {@code signer} field. + * + * @param signer the {@code signer} field value + * @return the {@code signer} field value + */ private Signer signer; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SetOptionsResult.java b/src/main/java/org/stellar/sdk/xdr/SetOptionsResult.java index 32a82b38a..2d456d1bf 100644 --- a/src/main/java/org/stellar/sdk/xdr/SetOptionsResult.java +++ b/src/main/java/org/stellar/sdk/xdr/SetOptionsResult.java @@ -38,6 +38,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SetOptionsResult implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private SetOptionsResultCode discriminant; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SetTrustLineFlagsOp.java b/src/main/java/org/stellar/sdk/xdr/SetTrustLineFlagsOp.java index d2afcd94e..9ded58da0 100644 --- a/src/main/java/org/stellar/sdk/xdr/SetTrustLineFlagsOp.java +++ b/src/main/java/org/stellar/sdk/xdr/SetTrustLineFlagsOp.java @@ -31,9 +31,36 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SetTrustLineFlagsOp implements XdrElement { + /** + * Value of the {@code trustor} field. + * + * @param trustor the {@code trustor} field value + * @return the {@code trustor} field value + */ private AccountID trustor; + + /** + * Value of the {@code asset} field. + * + * @param asset the {@code asset} field value + * @return the {@code asset} field value + */ private Asset asset; + + /** + * Value of the {@code clearFlags} field. + * + * @param clearFlags the {@code clearFlags} field value + * @return the {@code clearFlags} field value + */ private Uint32 clearFlags; + + /** + * Value of the {@code setFlags} field. + * + * @param setFlags the {@code setFlags} field value + * @return the {@code setFlags} field value + */ private Uint32 setFlags; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SetTrustLineFlagsResult.java b/src/main/java/org/stellar/sdk/xdr/SetTrustLineFlagsResult.java index fc7c82d80..b08f3582a 100644 --- a/src/main/java/org/stellar/sdk/xdr/SetTrustLineFlagsResult.java +++ b/src/main/java/org/stellar/sdk/xdr/SetTrustLineFlagsResult.java @@ -33,6 +33,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SetTrustLineFlagsResult implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private SetTrustLineFlagsResultCode discriminant; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/ShortHashSeed.java b/src/main/java/org/stellar/sdk/xdr/ShortHashSeed.java index 1b809bc22..5996c5f48 100644 --- a/src/main/java/org/stellar/sdk/xdr/ShortHashSeed.java +++ b/src/main/java/org/stellar/sdk/xdr/ShortHashSeed.java @@ -27,6 +27,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class ShortHashSeed implements XdrElement { + /** + * Value of the {@code seed} field. + * + * @param seed the {@code seed} field value + * @return the {@code seed} field value + */ private byte[] seed; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/Signature.java b/src/main/java/org/stellar/sdk/xdr/Signature.java index d0169f974..df0681218 100644 --- a/src/main/java/org/stellar/sdk/xdr/Signature.java +++ b/src/main/java/org/stellar/sdk/xdr/Signature.java @@ -21,6 +21,12 @@ @NoArgsConstructor @AllArgsConstructor public class Signature implements XdrElement { + /** + * Value of the {@code Signature} field. + * + * @param Signature the {@code Signature} field value + * @return the {@code Signature} field value + */ private byte[] Signature; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SignatureHint.java b/src/main/java/org/stellar/sdk/xdr/SignatureHint.java index 7bf611d3f..6e11e8511 100644 --- a/src/main/java/org/stellar/sdk/xdr/SignatureHint.java +++ b/src/main/java/org/stellar/sdk/xdr/SignatureHint.java @@ -21,6 +21,12 @@ @NoArgsConstructor @AllArgsConstructor public class SignatureHint implements XdrElement { + /** + * Value of the {@code SignatureHint} field. + * + * @param SignatureHint the {@code SignatureHint} field value + * @return the {@code SignatureHint} field value + */ private byte[] SignatureHint; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SignedTimeSlicedSurveyRequestMessage.java b/src/main/java/org/stellar/sdk/xdr/SignedTimeSlicedSurveyRequestMessage.java index f41e00e1a..19a3e1461 100644 --- a/src/main/java/org/stellar/sdk/xdr/SignedTimeSlicedSurveyRequestMessage.java +++ b/src/main/java/org/stellar/sdk/xdr/SignedTimeSlicedSurveyRequestMessage.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SignedTimeSlicedSurveyRequestMessage implements XdrElement { + /** + * Value of the {@code requestSignature} field. + * + * @param requestSignature the {@code requestSignature} field value + * @return the {@code requestSignature} field value + */ private Signature requestSignature; + + /** + * Value of the {@code request} field. + * + * @param request the {@code request} field value + * @return the {@code request} field value + */ private TimeSlicedSurveyRequestMessage request; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SignedTimeSlicedSurveyResponseMessage.java b/src/main/java/org/stellar/sdk/xdr/SignedTimeSlicedSurveyResponseMessage.java index a3f07bf88..7ded76ae3 100644 --- a/src/main/java/org/stellar/sdk/xdr/SignedTimeSlicedSurveyResponseMessage.java +++ b/src/main/java/org/stellar/sdk/xdr/SignedTimeSlicedSurveyResponseMessage.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SignedTimeSlicedSurveyResponseMessage implements XdrElement { + /** + * Value of the {@code responseSignature} field. + * + * @param responseSignature the {@code responseSignature} field value + * @return the {@code responseSignature} field value + */ private Signature responseSignature; + + /** + * Value of the {@code response} field. + * + * @param response the {@code response} field value + * @return the {@code response} field value + */ private TimeSlicedSurveyResponseMessage response; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SignedTimeSlicedSurveyStartCollectingMessage.java b/src/main/java/org/stellar/sdk/xdr/SignedTimeSlicedSurveyStartCollectingMessage.java index d3279a0a1..e7e66b158 100644 --- a/src/main/java/org/stellar/sdk/xdr/SignedTimeSlicedSurveyStartCollectingMessage.java +++ b/src/main/java/org/stellar/sdk/xdr/SignedTimeSlicedSurveyStartCollectingMessage.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SignedTimeSlicedSurveyStartCollectingMessage implements XdrElement { + /** + * Value of the {@code signature} field. + * + * @param signature the {@code signature} field value + * @return the {@code signature} field value + */ private Signature signature; + + /** + * Value of the {@code startCollecting} field. + * + * @param startCollecting the {@code startCollecting} field value + * @return the {@code startCollecting} field value + */ private TimeSlicedSurveyStartCollectingMessage startCollecting; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SignedTimeSlicedSurveyStopCollectingMessage.java b/src/main/java/org/stellar/sdk/xdr/SignedTimeSlicedSurveyStopCollectingMessage.java index 4576d4b8e..3a03ac449 100644 --- a/src/main/java/org/stellar/sdk/xdr/SignedTimeSlicedSurveyStopCollectingMessage.java +++ b/src/main/java/org/stellar/sdk/xdr/SignedTimeSlicedSurveyStopCollectingMessage.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SignedTimeSlicedSurveyStopCollectingMessage implements XdrElement { + /** + * Value of the {@code signature} field. + * + * @param signature the {@code signature} field value + * @return the {@code signature} field value + */ private Signature signature; + + /** + * Value of the {@code stopCollecting} field. + * + * @param stopCollecting the {@code stopCollecting} field value + * @return the {@code stopCollecting} field value + */ private TimeSlicedSurveyStopCollectingMessage stopCollecting; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/Signer.java b/src/main/java/org/stellar/sdk/xdr/Signer.java index 42e988731..8f4e2c490 100644 --- a/src/main/java/org/stellar/sdk/xdr/Signer.java +++ b/src/main/java/org/stellar/sdk/xdr/Signer.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class Signer implements XdrElement { + /** + * Value of the {@code key} field. + * + * @param key the {@code key} field value + * @return the {@code key} field value + */ private SignerKey key; + + /** + * Value of the {@code weight} field. + * + * @param weight the {@code weight} field value + * @return the {@code weight} field value + */ private Uint32 weight; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SignerKey.java b/src/main/java/org/stellar/sdk/xdr/SignerKey.java index 63d4a782e..d57baeb2c 100644 --- a/src/main/java/org/stellar/sdk/xdr/SignerKey.java +++ b/src/main/java/org/stellar/sdk/xdr/SignerKey.java @@ -43,10 +43,44 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SignerKey implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private SignerKeyType discriminant; + + /** + * Value of the {@code ed25519} field. + * + * @param ed25519 the {@code ed25519} field value + * @return the {@code ed25519} field value + */ private Uint256 ed25519; + + /** + * Value of the {@code preAuthTx} field. + * + * @param preAuthTx the {@code preAuthTx} field value + * @return the {@code preAuthTx} field value + */ private Uint256 preAuthTx; + + /** + * Value of the {@code hashX} field. + * + * @param hashX the {@code hashX} field value + * @return the {@code hashX} field value + */ private Uint256 hashX; + + /** + * Value of the {@code ed25519SignedPayload} field. + * + * @param ed25519SignedPayload the {@code ed25519SignedPayload} field value + * @return the {@code ed25519SignedPayload} field value + */ private SignerKeyEd25519SignedPayload ed25519SignedPayload; public void encode(XdrDataOutputStream stream) throws IOException { @@ -201,7 +235,20 @@ static SignerKey fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class SignerKeyEd25519SignedPayload implements XdrElement { + /** + * Value of the {@code ed25519} field. + * + * @param ed25519 the {@code ed25519} field value + * @return the {@code ed25519} field value + */ private Uint256 ed25519; + + /** + * Value of the {@code payload} field. + * + * @param payload the {@code payload} field value + * @return the {@code payload} field value + */ private byte[] payload; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SimplePaymentResult.java b/src/main/java/org/stellar/sdk/xdr/SimplePaymentResult.java index 4df65b6fe..bf38da95d 100644 --- a/src/main/java/org/stellar/sdk/xdr/SimplePaymentResult.java +++ b/src/main/java/org/stellar/sdk/xdr/SimplePaymentResult.java @@ -29,8 +29,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SimplePaymentResult implements XdrElement { + /** + * Value of the {@code destination} field. + * + * @param destination the {@code destination} field value + * @return the {@code destination} field value + */ private AccountID destination; + + /** + * Value of the {@code asset} field. + * + * @param asset the {@code asset} field value + * @return the {@code asset} field value + */ private Asset asset; + + /** + * Value of the {@code amount} field. + * + * @param amount the {@code amount} field value + * @return the {@code amount} field value + */ private Int64 amount; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SorobanAddressCredentials.java b/src/main/java/org/stellar/sdk/xdr/SorobanAddressCredentials.java index 1bd621ad3..3266c4538 100644 --- a/src/main/java/org/stellar/sdk/xdr/SorobanAddressCredentials.java +++ b/src/main/java/org/stellar/sdk/xdr/SorobanAddressCredentials.java @@ -30,9 +30,36 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SorobanAddressCredentials implements XdrElement { + /** + * Value of the {@code address} field. + * + * @param address the {@code address} field value + * @return the {@code address} field value + */ private SCAddress address; + + /** + * Value of the {@code nonce} field. + * + * @param nonce the {@code nonce} field value + * @return the {@code nonce} field value + */ private Int64 nonce; + + /** + * Value of the {@code signatureExpirationLedger} field. + * + * @param signatureExpirationLedger the {@code signatureExpirationLedger} field value + * @return the {@code signatureExpirationLedger} field value + */ private Uint32 signatureExpirationLedger; + + /** + * Value of the {@code signature} field. + * + * @param signature the {@code signature} field value + * @return the {@code signature} field value + */ private SCVal signature; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SorobanAddressCredentialsWithDelegates.java b/src/main/java/org/stellar/sdk/xdr/SorobanAddressCredentialsWithDelegates.java new file mode 100644 index 000000000..e57f54acb --- /dev/null +++ b/src/main/java/org/stellar/sdk/xdr/SorobanAddressCredentialsWithDelegates.java @@ -0,0 +1,137 @@ +// Automatically generated by xdrgen +// DO NOT EDIT or your changes may be overwritten + +package org.stellar.sdk.xdr; + +import java.io.ByteArrayInputStream; +import java.io.IOException; +import java.util.LinkedHashMap; +import java.util.List; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import org.stellar.sdk.Base64Factory; + +/** + * SorobanAddressCredentialsWithDelegates's original definition in the XDR file is: + * + *
+ * struct SorobanAddressCredentialsWithDelegates
+ * {
+ *     SorobanAddressCredentials addressCredentials;
+ *     SorobanDelegateSignature delegates<>;
+ * };
+ * 
+ */ +@Data +@NoArgsConstructor +@AllArgsConstructor +@Builder(toBuilder = true) +public class SorobanAddressCredentialsWithDelegates implements XdrElement { + /** + * Value of the {@code addressCredentials} field. + * + * @param addressCredentials the {@code addressCredentials} field value + * @return the {@code addressCredentials} field value + */ + private SorobanAddressCredentials addressCredentials; + + /** + * Value of the {@code delegates} field. + * + * @param delegates the {@code delegates} field value + * @return the {@code delegates} field value + */ + private SorobanDelegateSignature[] delegates; + + public void encode(XdrDataOutputStream stream) throws IOException { + addressCredentials.encode(stream); + int delegatesSize = getDelegates().length; + stream.writeInt(delegatesSize); + for (int i = 0; i < delegatesSize; i++) { + delegates[i].encode(stream); + } + } + + public static SorobanAddressCredentialsWithDelegates decode( + XdrDataInputStream stream, int maxDepth) throws IOException { + if (maxDepth <= 0) { + throw new IOException("Maximum decoding depth reached"); + } + maxDepth -= 1; + SorobanAddressCredentialsWithDelegates decodedSorobanAddressCredentialsWithDelegates = + new SorobanAddressCredentialsWithDelegates(); + decodedSorobanAddressCredentialsWithDelegates.addressCredentials = + SorobanAddressCredentials.decode(stream, maxDepth); + int delegatesSize = stream.readInt(); + if (delegatesSize < 0) { + throw new IOException("delegates size " + delegatesSize + " is negative"); + } + int delegatesRemainingInputLen = stream.getRemainingInputLen(); + if (delegatesRemainingInputLen >= 0 && delegatesRemainingInputLen < delegatesSize) { + throw new IOException( + "delegates size " + + delegatesSize + + " exceeds remaining input length " + + delegatesRemainingInputLen); + } + decodedSorobanAddressCredentialsWithDelegates.delegates = + new SorobanDelegateSignature[delegatesSize]; + for (int i = 0; i < delegatesSize; i++) { + decodedSorobanAddressCredentialsWithDelegates.delegates[i] = + SorobanDelegateSignature.decode(stream, maxDepth); + } + return decodedSorobanAddressCredentialsWithDelegates; + } + + public static SorobanAddressCredentialsWithDelegates decode(XdrDataInputStream stream) + throws IOException { + return decode(stream, XdrDataInputStream.DEFAULT_MAX_DEPTH); + } + + public static SorobanAddressCredentialsWithDelegates fromXdrBase64(String xdr) + throws IOException { + byte[] bytes = Base64Factory.getInstance().decode(xdr); + return fromXdrByteArray(bytes); + } + + public static SorobanAddressCredentialsWithDelegates fromXdrByteArray(byte[] xdr) + throws IOException { + ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(xdr); + XdrDataInputStream xdrDataInputStream = new XdrDataInputStream(byteArrayInputStream); + xdrDataInputStream.setMaxInputLen(xdr.length); + return decode(xdrDataInputStream); + } + + @Override + public String toJson() { + return XdrElement.gson.toJson(toJsonObject()); + } + + public static SorobanAddressCredentialsWithDelegates fromJson(String json) { + return fromJsonObject(XdrElement.gson.fromJson(json, Object.class)); + } + + Object toJsonObject() { + LinkedHashMap jsonMap = new LinkedHashMap<>(); + jsonMap.put("address_credentials", addressCredentials.toJsonObject()); + jsonMap.put( + "delegates", XdrElement.arrayToJsonArray(delegates, i -> delegates[i].toJsonObject())); + return jsonMap; + } + + @SuppressWarnings("unchecked") + static SorobanAddressCredentialsWithDelegates fromJsonObject(Object json) { + java.util.Map jsonMap = (java.util.Map) json; + SorobanAddressCredentialsWithDelegates instance = new SorobanAddressCredentialsWithDelegates(); + instance.addressCredentials = + SorobanAddressCredentials.fromJsonObject(jsonMap.get("address_credentials")); + instance.delegates = + XdrElement.jsonArrayToArray( + (List) jsonMap.get("delegates"), + SorobanDelegateSignature.class, + item -> SorobanDelegateSignature.fromJsonObject(item)); + return instance; + } +} diff --git a/src/main/java/org/stellar/sdk/xdr/SorobanAuthorizationEntries.java b/src/main/java/org/stellar/sdk/xdr/SorobanAuthorizationEntries.java index ce3a4e6a2..8a8a6fb34 100644 --- a/src/main/java/org/stellar/sdk/xdr/SorobanAuthorizationEntries.java +++ b/src/main/java/org/stellar/sdk/xdr/SorobanAuthorizationEntries.java @@ -22,6 +22,12 @@ @NoArgsConstructor @AllArgsConstructor public class SorobanAuthorizationEntries implements XdrElement { + /** + * Value of the {@code SorobanAuthorizationEntries} field. + * + * @param SorobanAuthorizationEntries the {@code SorobanAuthorizationEntries} field value + * @return the {@code SorobanAuthorizationEntries} field value + */ private SorobanAuthorizationEntry[] SorobanAuthorizationEntries; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SorobanAuthorizationEntry.java b/src/main/java/org/stellar/sdk/xdr/SorobanAuthorizationEntry.java index be1c8a191..acd23c572 100644 --- a/src/main/java/org/stellar/sdk/xdr/SorobanAuthorizationEntry.java +++ b/src/main/java/org/stellar/sdk/xdr/SorobanAuthorizationEntry.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SorobanAuthorizationEntry implements XdrElement { + /** + * Value of the {@code credentials} field. + * + * @param credentials the {@code credentials} field value + * @return the {@code credentials} field value + */ private SorobanCredentials credentials; + + /** + * Value of the {@code rootInvocation} field. + * + * @param rootInvocation the {@code rootInvocation} field value + * @return the {@code rootInvocation} field value + */ private SorobanAuthorizedInvocation rootInvocation; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SorobanAuthorizedFunction.java b/src/main/java/org/stellar/sdk/xdr/SorobanAuthorizedFunction.java index e33f3b032..e31da22bd 100644 --- a/src/main/java/org/stellar/sdk/xdr/SorobanAuthorizedFunction.java +++ b/src/main/java/org/stellar/sdk/xdr/SorobanAuthorizedFunction.java @@ -40,9 +40,36 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SorobanAuthorizedFunction implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private SorobanAuthorizedFunctionType discriminant; + + /** + * Value of the {@code contractFn} field. + * + * @param contractFn the {@code contractFn} field value + * @return the {@code contractFn} field value + */ private InvokeContractArgs contractFn; + + /** + * Value of the {@code createContractHostFn} field. + * + * @param createContractHostFn the {@code createContractHostFn} field value + * @return the {@code createContractHostFn} field value + */ private CreateContractArgs createContractHostFn; + + /** + * Value of the {@code createContractV2HostFn} field. + * + * @param createContractV2HostFn the {@code createContractV2HostFn} field value + * @return the {@code createContractV2HostFn} field value + */ private CreateContractArgsV2 createContractV2HostFn; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SorobanAuthorizedInvocation.java b/src/main/java/org/stellar/sdk/xdr/SorobanAuthorizedInvocation.java index c94d27fa8..1587ca421 100644 --- a/src/main/java/org/stellar/sdk/xdr/SorobanAuthorizedInvocation.java +++ b/src/main/java/org/stellar/sdk/xdr/SorobanAuthorizedInvocation.java @@ -29,7 +29,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SorobanAuthorizedInvocation implements XdrElement { + /** + * Value of the {@code function} field. + * + * @param function the {@code function} field value + * @return the {@code function} field value + */ private SorobanAuthorizedFunction function; + + /** + * Value of the {@code subInvocations} field. + * + * @param subInvocations the {@code subInvocations} field value + * @return the {@code subInvocations} field value + */ private SorobanAuthorizedInvocation[] subInvocations; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SorobanCredentials.java b/src/main/java/org/stellar/sdk/xdr/SorobanCredentials.java index 39142c12a..177e1c87d 100644 --- a/src/main/java/org/stellar/sdk/xdr/SorobanCredentials.java +++ b/src/main/java/org/stellar/sdk/xdr/SorobanCredentials.java @@ -22,6 +22,10 @@ * void; * case SOROBAN_CREDENTIALS_ADDRESS: * SorobanAddressCredentials address; + * case SOROBAN_CREDENTIALS_ADDRESS_V2: + * SorobanAddressCredentials addressV2; + * case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: + * SorobanAddressCredentialsWithDelegates addressWithDelegates; * }; * */ @@ -30,9 +34,38 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SorobanCredentials implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private SorobanCredentialsType discriminant; + + /** + * Value of the {@code address} field. + * + * @param address the {@code address} field value + * @return the {@code address} field value + */ private SorobanAddressCredentials address; + /** + * Value of the {@code addressV2} field. + * + * @param addressV2 the {@code addressV2} field value + * @return the {@code addressV2} field value + */ + private SorobanAddressCredentials addressV2; + + /** + * Value of the {@code addressWithDelegates} field. + * + * @param addressWithDelegates the {@code addressWithDelegates} field value + * @return the {@code addressWithDelegates} field value + */ + private SorobanAddressCredentialsWithDelegates addressWithDelegates; + public void encode(XdrDataOutputStream stream) throws IOException { stream.writeInt(discriminant.getValue()); switch (discriminant) { @@ -41,6 +74,12 @@ public void encode(XdrDataOutputStream stream) throws IOException { case SOROBAN_CREDENTIALS_ADDRESS: address.encode(stream); break; + case SOROBAN_CREDENTIALS_ADDRESS_V2: + addressV2.encode(stream); + break; + case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: + addressWithDelegates.encode(stream); + break; } } @@ -59,6 +98,13 @@ public static SorobanCredentials decode(XdrDataInputStream stream, int maxDepth) case SOROBAN_CREDENTIALS_ADDRESS: decodedSorobanCredentials.address = SorobanAddressCredentials.decode(stream, maxDepth); break; + case SOROBAN_CREDENTIALS_ADDRESS_V2: + decodedSorobanCredentials.addressV2 = SorobanAddressCredentials.decode(stream, maxDepth); + break; + case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: + decodedSorobanCredentials.addressWithDelegates = + SorobanAddressCredentialsWithDelegates.decode(stream, maxDepth); + break; default: throw new IOException("Unknown discriminant value: " + discriminant); } @@ -99,6 +145,16 @@ Object toJsonObject() { jsonMap.put("address", address.toJsonObject()); return jsonMap; } + if (discriminant == SorobanCredentialsType.SOROBAN_CREDENTIALS_ADDRESS_V2) { + LinkedHashMap jsonMap = new LinkedHashMap<>(); + jsonMap.put("address_v2", addressV2.toJsonObject()); + return jsonMap; + } + if (discriminant == SorobanCredentialsType.SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES) { + LinkedHashMap jsonMap = new LinkedHashMap<>(); + jsonMap.put("address_with_delegates", addressWithDelegates.toJsonObject()); + return jsonMap; + } throw new IllegalArgumentException("Unknown discriminant: " + discriminant); } @@ -131,6 +187,20 @@ static SorobanCredentials fromJsonObject(Object json) { instance.address = SorobanAddressCredentials.fromJsonObject(jsonMap.get("address")); return instance; } + if (key.equals("address_v2")) { + SorobanCredentials instance = new SorobanCredentials(); + instance.discriminant = discriminant; + instance.addressV2 = SorobanAddressCredentials.fromJsonObject(jsonMap.get("address_v2")); + return instance; + } + if (key.equals("address_with_delegates")) { + SorobanCredentials instance = new SorobanCredentials(); + instance.discriminant = discriminant; + instance.addressWithDelegates = + SorobanAddressCredentialsWithDelegates.fromJsonObject( + jsonMap.get("address_with_delegates")); + return instance; + } throw new IllegalArgumentException("Unknown key '" + key + "' for SorobanCredentials"); } } diff --git a/src/main/java/org/stellar/sdk/xdr/SorobanCredentialsType.java b/src/main/java/org/stellar/sdk/xdr/SorobanCredentialsType.java index 00d28d681..2a02d94fe 100644 --- a/src/main/java/org/stellar/sdk/xdr/SorobanCredentialsType.java +++ b/src/main/java/org/stellar/sdk/xdr/SorobanCredentialsType.java @@ -14,13 +14,17 @@ * enum SorobanCredentialsType * { * SOROBAN_CREDENTIALS_SOURCE_ACCOUNT = 0, - * SOROBAN_CREDENTIALS_ADDRESS = 1 + * SOROBAN_CREDENTIALS_ADDRESS = 1, + * SOROBAN_CREDENTIALS_ADDRESS_V2 = 2, + * SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES = 3 * }; * */ public enum SorobanCredentialsType implements XdrElement { SOROBAN_CREDENTIALS_SOURCE_ACCOUNT(0), - SOROBAN_CREDENTIALS_ADDRESS(1); + SOROBAN_CREDENTIALS_ADDRESS(1), + SOROBAN_CREDENTIALS_ADDRESS_V2(2), + SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES(3); private final int value; @@ -41,6 +45,10 @@ public static SorobanCredentialsType decode(XdrDataInputStream stream, int maxDe return SOROBAN_CREDENTIALS_SOURCE_ACCOUNT; case 1: return SOROBAN_CREDENTIALS_ADDRESS; + case 2: + return SOROBAN_CREDENTIALS_ADDRESS_V2; + case 3: + return SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES; default: throw new IllegalArgumentException("Unknown enum value: " + value); } @@ -81,6 +89,10 @@ Object toJsonObject() { return "source_account"; case SOROBAN_CREDENTIALS_ADDRESS: return "address"; + case SOROBAN_CREDENTIALS_ADDRESS_V2: + return "address_v2"; + case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: + return "address_with_delegates"; default: throw new IllegalArgumentException("Unknown enum value: " + this.value); } @@ -93,6 +105,10 @@ static SorobanCredentialsType fromJsonObject(Object json) { return SOROBAN_CREDENTIALS_SOURCE_ACCOUNT; case "address": return SOROBAN_CREDENTIALS_ADDRESS; + case "address_v2": + return SOROBAN_CREDENTIALS_ADDRESS_V2; + case "address_with_delegates": + return SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES; default: throw new IllegalArgumentException("Unknown JSON value: " + value); } diff --git a/src/main/java/org/stellar/sdk/xdr/SorobanDelegateSignature.java b/src/main/java/org/stellar/sdk/xdr/SorobanDelegateSignature.java new file mode 100644 index 000000000..31cf87ed2 --- /dev/null +++ b/src/main/java/org/stellar/sdk/xdr/SorobanDelegateSignature.java @@ -0,0 +1,146 @@ +// Automatically generated by xdrgen +// DO NOT EDIT or your changes may be overwritten + +package org.stellar.sdk.xdr; + +import java.io.ByteArrayInputStream; +import java.io.IOException; +import java.util.LinkedHashMap; +import java.util.List; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import org.stellar.sdk.Base64Factory; + +/** + * SorobanDelegateSignature's original definition in the XDR file is: + * + *
+ * struct SorobanDelegateSignature
+ * {
+ *     SCAddress address;
+ *     SCVal signature;
+ *     SorobanDelegateSignature nestedDelegates<>;
+ * };
+ * 
+ */ +@Data +@NoArgsConstructor +@AllArgsConstructor +@Builder(toBuilder = true) +public class SorobanDelegateSignature implements XdrElement { + /** + * Value of the {@code address} field. + * + * @param address the {@code address} field value + * @return the {@code address} field value + */ + private SCAddress address; + + /** + * Value of the {@code signature} field. + * + * @param signature the {@code signature} field value + * @return the {@code signature} field value + */ + private SCVal signature; + + /** + * Value of the {@code nestedDelegates} field. + * + * @param nestedDelegates the {@code nestedDelegates} field value + * @return the {@code nestedDelegates} field value + */ + private SorobanDelegateSignature[] nestedDelegates; + + public void encode(XdrDataOutputStream stream) throws IOException { + address.encode(stream); + signature.encode(stream); + int nestedDelegatesSize = getNestedDelegates().length; + stream.writeInt(nestedDelegatesSize); + for (int i = 0; i < nestedDelegatesSize; i++) { + nestedDelegates[i].encode(stream); + } + } + + public static SorobanDelegateSignature decode(XdrDataInputStream stream, int maxDepth) + throws IOException { + if (maxDepth <= 0) { + throw new IOException("Maximum decoding depth reached"); + } + maxDepth -= 1; + SorobanDelegateSignature decodedSorobanDelegateSignature = new SorobanDelegateSignature(); + decodedSorobanDelegateSignature.address = SCAddress.decode(stream, maxDepth); + decodedSorobanDelegateSignature.signature = SCVal.decode(stream, maxDepth); + int nestedDelegatesSize = stream.readInt(); + if (nestedDelegatesSize < 0) { + throw new IOException("nestedDelegates size " + nestedDelegatesSize + " is negative"); + } + int nestedDelegatesRemainingInputLen = stream.getRemainingInputLen(); + if (nestedDelegatesRemainingInputLen >= 0 + && nestedDelegatesRemainingInputLen < nestedDelegatesSize) { + throw new IOException( + "nestedDelegates size " + + nestedDelegatesSize + + " exceeds remaining input length " + + nestedDelegatesRemainingInputLen); + } + decodedSorobanDelegateSignature.nestedDelegates = + new SorobanDelegateSignature[nestedDelegatesSize]; + for (int i = 0; i < nestedDelegatesSize; i++) { + decodedSorobanDelegateSignature.nestedDelegates[i] = + SorobanDelegateSignature.decode(stream, maxDepth); + } + return decodedSorobanDelegateSignature; + } + + public static SorobanDelegateSignature decode(XdrDataInputStream stream) throws IOException { + return decode(stream, XdrDataInputStream.DEFAULT_MAX_DEPTH); + } + + public static SorobanDelegateSignature fromXdrBase64(String xdr) throws IOException { + byte[] bytes = Base64Factory.getInstance().decode(xdr); + return fromXdrByteArray(bytes); + } + + public static SorobanDelegateSignature fromXdrByteArray(byte[] xdr) throws IOException { + ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(xdr); + XdrDataInputStream xdrDataInputStream = new XdrDataInputStream(byteArrayInputStream); + xdrDataInputStream.setMaxInputLen(xdr.length); + return decode(xdrDataInputStream); + } + + @Override + public String toJson() { + return XdrElement.gson.toJson(toJsonObject()); + } + + public static SorobanDelegateSignature fromJson(String json) { + return fromJsonObject(XdrElement.gson.fromJson(json, Object.class)); + } + + Object toJsonObject() { + LinkedHashMap jsonMap = new LinkedHashMap<>(); + jsonMap.put("address", address.toJsonObject()); + jsonMap.put("signature", signature.toJsonObject()); + jsonMap.put( + "nested_delegates", + XdrElement.arrayToJsonArray(nestedDelegates, i -> nestedDelegates[i].toJsonObject())); + return jsonMap; + } + + @SuppressWarnings("unchecked") + static SorobanDelegateSignature fromJsonObject(Object json) { + java.util.Map jsonMap = (java.util.Map) json; + SorobanDelegateSignature instance = new SorobanDelegateSignature(); + instance.address = SCAddress.fromJsonObject(jsonMap.get("address")); + instance.signature = SCVal.fromJsonObject(jsonMap.get("signature")); + instance.nestedDelegates = + XdrElement.jsonArrayToArray( + (List) jsonMap.get("nested_delegates"), + SorobanDelegateSignature.class, + item -> SorobanDelegateSignature.fromJsonObject(item)); + return instance; + } +} diff --git a/src/main/java/org/stellar/sdk/xdr/SorobanResources.java b/src/main/java/org/stellar/sdk/xdr/SorobanResources.java index 7d01e27e7..200efee5e 100644 --- a/src/main/java/org/stellar/sdk/xdr/SorobanResources.java +++ b/src/main/java/org/stellar/sdk/xdr/SorobanResources.java @@ -35,9 +35,36 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SorobanResources implements XdrElement { + /** + * Value of the {@code footprint} field. + * + * @param footprint the {@code footprint} field value + * @return the {@code footprint} field value + */ private LedgerFootprint footprint; + + /** + * Value of the {@code instructions} field. + * + * @param instructions the {@code instructions} field value + * @return the {@code instructions} field value + */ private Uint32 instructions; + + /** + * Value of the {@code diskReadBytes} field. + * + * @param diskReadBytes the {@code diskReadBytes} field value + * @return the {@code diskReadBytes} field value + */ private Uint32 diskReadBytes; + + /** + * Value of the {@code writeBytes} field. + * + * @param writeBytes the {@code writeBytes} field value + * @return the {@code writeBytes} field value + */ private Uint32 writeBytes; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SorobanResourcesExtV0.java b/src/main/java/org/stellar/sdk/xdr/SorobanResourcesExtV0.java index c092dd60a..df241ded5 100644 --- a/src/main/java/org/stellar/sdk/xdr/SorobanResourcesExtV0.java +++ b/src/main/java/org/stellar/sdk/xdr/SorobanResourcesExtV0.java @@ -31,6 +31,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SorobanResourcesExtV0 implements XdrElement { + /** + * Value of the {@code archivedSorobanEntries} field. + * + * @param archivedSorobanEntries the {@code archivedSorobanEntries} field value + * @return the {@code archivedSorobanEntries} field value + */ private Uint32[] archivedSorobanEntries; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SorobanTransactionData.java b/src/main/java/org/stellar/sdk/xdr/SorobanTransactionData.java index e756bacb8..b2c9b4a4b 100644 --- a/src/main/java/org/stellar/sdk/xdr/SorobanTransactionData.java +++ b/src/main/java/org/stellar/sdk/xdr/SorobanTransactionData.java @@ -44,8 +44,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SorobanTransactionData implements XdrElement { + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private SorobanTransactionDataExt ext; + + /** + * Value of the {@code resources} field. + * + * @param resources the {@code resources} field value + * @return the {@code resources} field value + */ private SorobanResources resources; + + /** + * Value of the {@code resourceFee} field. + * + * @param resourceFee the {@code resourceFee} field value + * @return the {@code resourceFee} field value + */ private Int64 resourceFee; public void encode(XdrDataOutputStream stream) throws IOException { @@ -128,7 +148,20 @@ static SorobanTransactionData fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class SorobanTransactionDataExt implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; + + /** + * Value of the {@code resourceExt} field. + * + * @param resourceExt the {@code resourceExt} field value + * @return the {@code resourceExt} field value + */ private SorobanResourcesExtV0 resourceExt; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SorobanTransactionMeta.java b/src/main/java/org/stellar/sdk/xdr/SorobanTransactionMeta.java index ac31eec35..f2525eebe 100644 --- a/src/main/java/org/stellar/sdk/xdr/SorobanTransactionMeta.java +++ b/src/main/java/org/stellar/sdk/xdr/SorobanTransactionMeta.java @@ -37,9 +37,36 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SorobanTransactionMeta implements XdrElement { + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private SorobanTransactionMetaExt ext; + + /** + * Value of the {@code events} field. + * + * @param events the {@code events} field value + * @return the {@code events} field value + */ private ContractEvent[] events; + + /** + * Value of the {@code returnValue} field. + * + * @param returnValue the {@code returnValue} field value + * @return the {@code returnValue} field value + */ private SCVal returnValue; + + /** + * Value of the {@code diagnosticEvents} field. + * + * @param diagnosticEvents the {@code diagnosticEvents} field value + * @return the {@code diagnosticEvents} field value + */ private DiagnosticEvent[] diagnosticEvents; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SorobanTransactionMetaExt.java b/src/main/java/org/stellar/sdk/xdr/SorobanTransactionMetaExt.java index e4bc48072..d8274c89c 100644 --- a/src/main/java/org/stellar/sdk/xdr/SorobanTransactionMetaExt.java +++ b/src/main/java/org/stellar/sdk/xdr/SorobanTransactionMetaExt.java @@ -30,7 +30,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SorobanTransactionMetaExt implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; + + /** + * Value of the {@code v1} field. + * + * @param v1 the {@code v1} field value + * @return the {@code v1} field value + */ private SorobanTransactionMetaExtV1 v1; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SorobanTransactionMetaExtV1.java b/src/main/java/org/stellar/sdk/xdr/SorobanTransactionMetaExtV1.java index ad5e83b91..1a7ef7964 100644 --- a/src/main/java/org/stellar/sdk/xdr/SorobanTransactionMetaExtV1.java +++ b/src/main/java/org/stellar/sdk/xdr/SorobanTransactionMetaExtV1.java @@ -56,9 +56,38 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SorobanTransactionMetaExtV1 implements XdrElement { + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private ExtensionPoint ext; + + /** + * Value of the {@code totalNonRefundableResourceFeeCharged} field. + * + * @param totalNonRefundableResourceFeeCharged the {@code totalNonRefundableResourceFeeCharged} + * field value + * @return the {@code totalNonRefundableResourceFeeCharged} field value + */ private Int64 totalNonRefundableResourceFeeCharged; + + /** + * Value of the {@code totalRefundableResourceFeeCharged} field. + * + * @param totalRefundableResourceFeeCharged the {@code totalRefundableResourceFeeCharged} field + * value + * @return the {@code totalRefundableResourceFeeCharged} field value + */ private Int64 totalRefundableResourceFeeCharged; + + /** + * Value of the {@code rentFeeCharged} field. + * + * @param rentFeeCharged the {@code rentFeeCharged} field value + * @return the {@code rentFeeCharged} field value + */ private Int64 rentFeeCharged; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SorobanTransactionMetaV2.java b/src/main/java/org/stellar/sdk/xdr/SorobanTransactionMetaV2.java index 1e15f028a..febac50a2 100644 --- a/src/main/java/org/stellar/sdk/xdr/SorobanTransactionMetaV2.java +++ b/src/main/java/org/stellar/sdk/xdr/SorobanTransactionMetaV2.java @@ -29,7 +29,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SorobanTransactionMetaV2 implements XdrElement { + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private SorobanTransactionMetaExt ext; + + /** + * Value of the {@code returnValue} field. + * + * @param returnValue the {@code returnValue} field value + * @return the {@code returnValue} field value + */ private SCVal returnValue; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SponsorshipDescriptor.java b/src/main/java/org/stellar/sdk/xdr/SponsorshipDescriptor.java index 567044e40..2bc2183a1 100644 --- a/src/main/java/org/stellar/sdk/xdr/SponsorshipDescriptor.java +++ b/src/main/java/org/stellar/sdk/xdr/SponsorshipDescriptor.java @@ -21,6 +21,12 @@ @NoArgsConstructor @AllArgsConstructor public class SponsorshipDescriptor implements XdrElement { + /** + * Value of the {@code SponsorshipDescriptor} field. + * + * @param SponsorshipDescriptor the {@code SponsorshipDescriptor} field value + * @return the {@code SponsorshipDescriptor} field value + */ private AccountID SponsorshipDescriptor; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/StateArchivalSettings.java b/src/main/java/org/stellar/sdk/xdr/StateArchivalSettings.java index 4e2804f27..c5a8b50b1 100644 --- a/src/main/java/org/stellar/sdk/xdr/StateArchivalSettings.java +++ b/src/main/java/org/stellar/sdk/xdr/StateArchivalSettings.java @@ -47,15 +47,86 @@ @AllArgsConstructor @Builder(toBuilder = true) public class StateArchivalSettings implements XdrElement { + /** + * Value of the {@code maxEntryTTL} field. + * + * @param maxEntryTTL the {@code maxEntryTTL} field value + * @return the {@code maxEntryTTL} field value + */ private Uint32 maxEntryTTL; + + /** + * Value of the {@code minTemporaryTTL} field. + * + * @param minTemporaryTTL the {@code minTemporaryTTL} field value + * @return the {@code minTemporaryTTL} field value + */ private Uint32 minTemporaryTTL; + + /** + * Value of the {@code minPersistentTTL} field. + * + * @param minPersistentTTL the {@code minPersistentTTL} field value + * @return the {@code minPersistentTTL} field value + */ private Uint32 minPersistentTTL; + + /** + * Value of the {@code persistentRentRateDenominator} field. + * + * @param persistentRentRateDenominator the {@code persistentRentRateDenominator} field value + * @return the {@code persistentRentRateDenominator} field value + */ private Int64 persistentRentRateDenominator; + + /** + * Value of the {@code tempRentRateDenominator} field. + * + * @param tempRentRateDenominator the {@code tempRentRateDenominator} field value + * @return the {@code tempRentRateDenominator} field value + */ private Int64 tempRentRateDenominator; + + /** + * Value of the {@code maxEntriesToArchive} field. + * + * @param maxEntriesToArchive the {@code maxEntriesToArchive} field value + * @return the {@code maxEntriesToArchive} field value + */ private Uint32 maxEntriesToArchive; + + /** + * Value of the {@code liveSorobanStateSizeWindowSampleSize} field. + * + * @param liveSorobanStateSizeWindowSampleSize the {@code liveSorobanStateSizeWindowSampleSize} + * field value + * @return the {@code liveSorobanStateSizeWindowSampleSize} field value + */ private Uint32 liveSorobanStateSizeWindowSampleSize; + + /** + * Value of the {@code liveSorobanStateSizeWindowSamplePeriod} field. + * + * @param liveSorobanStateSizeWindowSamplePeriod the {@code + * liveSorobanStateSizeWindowSamplePeriod} field value + * @return the {@code liveSorobanStateSizeWindowSamplePeriod} field value + */ private Uint32 liveSorobanStateSizeWindowSamplePeriod; + + /** + * Value of the {@code evictionScanSize} field. + * + * @param evictionScanSize the {@code evictionScanSize} field value + * @return the {@code evictionScanSize} field value + */ private Uint32 evictionScanSize; + + /** + * Value of the {@code startingEvictionScanLevel} field. + * + * @param startingEvictionScanLevel the {@code startingEvictionScanLevel} field value + * @return the {@code startingEvictionScanLevel} field value + */ private Uint32 startingEvictionScanLevel; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/StellarMessage.java b/src/main/java/org/stellar/sdk/xdr/StellarMessage.java index 8d9bdc043..4714e1fbe 100644 --- a/src/main/java/org/stellar/sdk/xdr/StellarMessage.java +++ b/src/main/java/org/stellar/sdk/xdr/StellarMessage.java @@ -80,27 +80,184 @@ @AllArgsConstructor @Builder(toBuilder = true) public class StellarMessage implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private MessageType discriminant; + + /** + * Value of the {@code error} field. + * + * @param error the {@code error} field value + * @return the {@code error} field value + */ private Error error; + + /** + * Value of the {@code hello} field. + * + * @param hello the {@code hello} field value + * @return the {@code hello} field value + */ private Hello hello; + + /** + * Value of the {@code auth} field. + * + * @param auth the {@code auth} field value + * @return the {@code auth} field value + */ private Auth auth; + + /** + * Value of the {@code dontHave} field. + * + * @param dontHave the {@code dontHave} field value + * @return the {@code dontHave} field value + */ private DontHave dontHave; + + /** + * Value of the {@code peers} field. + * + * @param peers the {@code peers} field value + * @return the {@code peers} field value + */ private PeerAddress[] peers; + + /** + * Value of the {@code txSetHash} field. + * + * @param txSetHash the {@code txSetHash} field value + * @return the {@code txSetHash} field value + */ private Uint256 txSetHash; + + /** + * Value of the {@code txSet} field. + * + * @param txSet the {@code txSet} field value + * @return the {@code txSet} field value + */ private TransactionSet txSet; + + /** + * Value of the {@code generalizedTxSet} field. + * + * @param generalizedTxSet the {@code generalizedTxSet} field value + * @return the {@code generalizedTxSet} field value + */ private GeneralizedTransactionSet generalizedTxSet; + + /** + * Value of the {@code transaction} field. + * + * @param transaction the {@code transaction} field value + * @return the {@code transaction} field value + */ private TransactionEnvelope transaction; + + /** + * Value of the {@code signedTimeSlicedSurveyRequestMessage} field. + * + * @param signedTimeSlicedSurveyRequestMessage the {@code signedTimeSlicedSurveyRequestMessage} + * field value + * @return the {@code signedTimeSlicedSurveyRequestMessage} field value + */ private SignedTimeSlicedSurveyRequestMessage signedTimeSlicedSurveyRequestMessage; + + /** + * Value of the {@code signedTimeSlicedSurveyResponseMessage} field. + * + * @param signedTimeSlicedSurveyResponseMessage the {@code signedTimeSlicedSurveyResponseMessage} + * field value + * @return the {@code signedTimeSlicedSurveyResponseMessage} field value + */ private SignedTimeSlicedSurveyResponseMessage signedTimeSlicedSurveyResponseMessage; + + /** + * Value of the {@code signedTimeSlicedSurveyStartCollectingMessage} field. + * + * @param signedTimeSlicedSurveyStartCollectingMessage the {@code + * signedTimeSlicedSurveyStartCollectingMessage} field value + * @return the {@code signedTimeSlicedSurveyStartCollectingMessage} field value + */ private SignedTimeSlicedSurveyStartCollectingMessage signedTimeSlicedSurveyStartCollectingMessage; + + /** + * Value of the {@code signedTimeSlicedSurveyStopCollectingMessage} field. + * + * @param signedTimeSlicedSurveyStopCollectingMessage the {@code + * signedTimeSlicedSurveyStopCollectingMessage} field value + * @return the {@code signedTimeSlicedSurveyStopCollectingMessage} field value + */ private SignedTimeSlicedSurveyStopCollectingMessage signedTimeSlicedSurveyStopCollectingMessage; + + /** + * Value of the {@code qSetHash} field. + * + * @param qSetHash the {@code qSetHash} field value + * @return the {@code qSetHash} field value + */ private Uint256 qSetHash; + + /** + * Value of the {@code qSet} field. + * + * @param qSet the {@code qSet} field value + * @return the {@code qSet} field value + */ private SCPQuorumSet qSet; + + /** + * Value of the {@code envelope} field. + * + * @param envelope the {@code envelope} field value + * @return the {@code envelope} field value + */ private SCPEnvelope envelope; + + /** + * Value of the {@code getSCPLedgerSeq} field. + * + * @param getSCPLedgerSeq the {@code getSCPLedgerSeq} field value + * @return the {@code getSCPLedgerSeq} field value + */ private Uint32 getSCPLedgerSeq; + + /** + * Value of the {@code sendMoreMessage} field. + * + * @param sendMoreMessage the {@code sendMoreMessage} field value + * @return the {@code sendMoreMessage} field value + */ private SendMore sendMoreMessage; + + /** + * Value of the {@code sendMoreExtendedMessage} field. + * + * @param sendMoreExtendedMessage the {@code sendMoreExtendedMessage} field value + * @return the {@code sendMoreExtendedMessage} field value + */ private SendMoreExtended sendMoreExtendedMessage; + + /** + * Value of the {@code floodAdvert} field. + * + * @param floodAdvert the {@code floodAdvert} field value + * @return the {@code floodAdvert} field value + */ private FloodAdvert floodAdvert; + + /** + * Value of the {@code floodDemand} field. + * + * @param floodDemand the {@code floodDemand} field value + * @return the {@code floodDemand} field value + */ private FloodDemand floodDemand; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/StellarValue.java b/src/main/java/org/stellar/sdk/xdr/StellarValue.java index 31f34a9cc..73a768ce6 100644 --- a/src/main/java/org/stellar/sdk/xdr/StellarValue.java +++ b/src/main/java/org/stellar/sdk/xdr/StellarValue.java @@ -46,9 +46,36 @@ @AllArgsConstructor @Builder(toBuilder = true) public class StellarValue implements XdrElement { + /** + * Value of the {@code txSetHash} field. + * + * @param txSetHash the {@code txSetHash} field value + * @return the {@code txSetHash} field value + */ private Hash txSetHash; + + /** + * Value of the {@code closeTime} field. + * + * @param closeTime the {@code closeTime} field value + * @return the {@code closeTime} field value + */ private TimePoint closeTime; + + /** + * Value of the {@code upgrades} field. + * + * @param upgrades the {@code upgrades} field value + * @return the {@code upgrades} field value + */ private UpgradeType[] upgrades; + + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private StellarValueExt ext; public void encode(XdrDataOutputStream stream) throws IOException { @@ -163,7 +190,20 @@ static StellarValue fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class StellarValueExt implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private StellarValueType discriminant; + + /** + * Value of the {@code lcValueSignature} field. + * + * @param lcValueSignature the {@code lcValueSignature} field value + * @return the {@code lcValueSignature} field value + */ private LedgerCloseValueSignature lcValueSignature; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/StoredDebugTransactionSet.java b/src/main/java/org/stellar/sdk/xdr/StoredDebugTransactionSet.java index 4ee8e8d16..41d561aa4 100644 --- a/src/main/java/org/stellar/sdk/xdr/StoredDebugTransactionSet.java +++ b/src/main/java/org/stellar/sdk/xdr/StoredDebugTransactionSet.java @@ -29,8 +29,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class StoredDebugTransactionSet implements XdrElement { + /** + * Value of the {@code txSet} field. + * + * @param txSet the {@code txSet} field value + * @return the {@code txSet} field value + */ private StoredTransactionSet txSet; + + /** + * Value of the {@code ledgerSeq} field. + * + * @param ledgerSeq the {@code ledgerSeq} field value + * @return the {@code ledgerSeq} field value + */ private Uint32 ledgerSeq; + + /** + * Value of the {@code scpValue} field. + * + * @param scpValue the {@code scpValue} field value + * @return the {@code scpValue} field value + */ private StellarValue scpValue; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/StoredTransactionSet.java b/src/main/java/org/stellar/sdk/xdr/StoredTransactionSet.java index 9b8ee0501..be354b180 100644 --- a/src/main/java/org/stellar/sdk/xdr/StoredTransactionSet.java +++ b/src/main/java/org/stellar/sdk/xdr/StoredTransactionSet.java @@ -30,8 +30,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class StoredTransactionSet implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; + + /** + * Value of the {@code txSet} field. + * + * @param txSet the {@code txSet} field value + * @return the {@code txSet} field value + */ private TransactionSet txSet; + + /** + * Value of the {@code generalizedTxSet} field. + * + * @param generalizedTxSet the {@code generalizedTxSet} field value + * @return the {@code generalizedTxSet} field value + */ private GeneralizedTransactionSet generalizedTxSet; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/String32.java b/src/main/java/org/stellar/sdk/xdr/String32.java index 56fee0c72..3ba6c1838 100644 --- a/src/main/java/org/stellar/sdk/xdr/String32.java +++ b/src/main/java/org/stellar/sdk/xdr/String32.java @@ -21,6 +21,12 @@ @NoArgsConstructor @AllArgsConstructor public class String32 implements XdrElement { + /** + * Value of the {@code string32} field. + * + * @param string32 the {@code string32} field value + * @return the {@code string32} field value + */ private XdrString string32; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/String64.java b/src/main/java/org/stellar/sdk/xdr/String64.java index 99c6744c9..bb18077d7 100644 --- a/src/main/java/org/stellar/sdk/xdr/String64.java +++ b/src/main/java/org/stellar/sdk/xdr/String64.java @@ -21,6 +21,12 @@ @NoArgsConstructor @AllArgsConstructor public class String64 implements XdrElement { + /** + * Value of the {@code string64} field. + * + * @param string64 the {@code string64} field value + * @return the {@code string64} field value + */ private XdrString string64; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SurveyRequestMessage.java b/src/main/java/org/stellar/sdk/xdr/SurveyRequestMessage.java index 684217469..7e2a096fb 100644 --- a/src/main/java/org/stellar/sdk/xdr/SurveyRequestMessage.java +++ b/src/main/java/org/stellar/sdk/xdr/SurveyRequestMessage.java @@ -31,10 +31,44 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SurveyRequestMessage implements XdrElement { + /** + * Value of the {@code surveyorPeerID} field. + * + * @param surveyorPeerID the {@code surveyorPeerID} field value + * @return the {@code surveyorPeerID} field value + */ private NodeID surveyorPeerID; + + /** + * Value of the {@code surveyedPeerID} field. + * + * @param surveyedPeerID the {@code surveyedPeerID} field value + * @return the {@code surveyedPeerID} field value + */ private NodeID surveyedPeerID; + + /** + * Value of the {@code ledgerNum} field. + * + * @param ledgerNum the {@code ledgerNum} field value + * @return the {@code ledgerNum} field value + */ private Uint32 ledgerNum; + + /** + * Value of the {@code encryptionKey} field. + * + * @param encryptionKey the {@code encryptionKey} field value + * @return the {@code encryptionKey} field value + */ private Curve25519Public encryptionKey; + + /** + * Value of the {@code commandType} field. + * + * @param commandType the {@code commandType} field value + * @return the {@code commandType} field value + */ private SurveyMessageCommandType commandType; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SurveyResponseBody.java b/src/main/java/org/stellar/sdk/xdr/SurveyResponseBody.java index 55439893f..8c3e148dd 100644 --- a/src/main/java/org/stellar/sdk/xdr/SurveyResponseBody.java +++ b/src/main/java/org/stellar/sdk/xdr/SurveyResponseBody.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SurveyResponseBody implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private SurveyMessageResponseType discriminant; + + /** + * Value of the {@code topologyResponseBodyV2} field. + * + * @param topologyResponseBodyV2 the {@code topologyResponseBodyV2} field value + * @return the {@code topologyResponseBodyV2} field value + */ private TopologyResponseBodyV2 topologyResponseBodyV2; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/SurveyResponseMessage.java b/src/main/java/org/stellar/sdk/xdr/SurveyResponseMessage.java index c2b689c97..624c8ec92 100644 --- a/src/main/java/org/stellar/sdk/xdr/SurveyResponseMessage.java +++ b/src/main/java/org/stellar/sdk/xdr/SurveyResponseMessage.java @@ -31,10 +31,44 @@ @AllArgsConstructor @Builder(toBuilder = true) public class SurveyResponseMessage implements XdrElement { + /** + * Value of the {@code surveyorPeerID} field. + * + * @param surveyorPeerID the {@code surveyorPeerID} field value + * @return the {@code surveyorPeerID} field value + */ private NodeID surveyorPeerID; + + /** + * Value of the {@code surveyedPeerID} field. + * + * @param surveyedPeerID the {@code surveyedPeerID} field value + * @return the {@code surveyedPeerID} field value + */ private NodeID surveyedPeerID; + + /** + * Value of the {@code ledgerNum} field. + * + * @param ledgerNum the {@code ledgerNum} field value + * @return the {@code ledgerNum} field value + */ private Uint32 ledgerNum; + + /** + * Value of the {@code commandType} field. + * + * @param commandType the {@code commandType} field value + * @return the {@code commandType} field value + */ private SurveyMessageCommandType commandType; + + /** + * Value of the {@code encryptedBody} field. + * + * @param encryptedBody the {@code encryptedBody} field value + * @return the {@code encryptedBody} field value + */ private EncryptedBody encryptedBody; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TTLEntry.java b/src/main/java/org/stellar/sdk/xdr/TTLEntry.java index 345a6f2fa..bfb86f345 100644 --- a/src/main/java/org/stellar/sdk/xdr/TTLEntry.java +++ b/src/main/java/org/stellar/sdk/xdr/TTLEntry.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class TTLEntry implements XdrElement { + /** + * Value of the {@code keyHash} field. + * + * @param keyHash the {@code keyHash} field value + * @return the {@code keyHash} field value + */ private Hash keyHash; + + /** + * Value of the {@code liveUntilLedgerSeq} field. + * + * @param liveUntilLedgerSeq the {@code liveUntilLedgerSeq} field value + * @return the {@code liveUntilLedgerSeq} field value + */ private Uint32 liveUntilLedgerSeq; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/Thresholds.java b/src/main/java/org/stellar/sdk/xdr/Thresholds.java index 1655f62b7..d0fc8da83 100644 --- a/src/main/java/org/stellar/sdk/xdr/Thresholds.java +++ b/src/main/java/org/stellar/sdk/xdr/Thresholds.java @@ -21,6 +21,12 @@ @NoArgsConstructor @AllArgsConstructor public class Thresholds implements XdrElement { + /** + * Value of the {@code Thresholds} field. + * + * @param Thresholds the {@code Thresholds} field value + * @return the {@code Thresholds} field value + */ private byte[] Thresholds; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TimeBounds.java b/src/main/java/org/stellar/sdk/xdr/TimeBounds.java index 65c2dc355..f2415f022 100644 --- a/src/main/java/org/stellar/sdk/xdr/TimeBounds.java +++ b/src/main/java/org/stellar/sdk/xdr/TimeBounds.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class TimeBounds implements XdrElement { + /** + * Value of the {@code minTime} field. + * + * @param minTime the {@code minTime} field value + * @return the {@code minTime} field value + */ private TimePoint minTime; + + /** + * Value of the {@code maxTime} field. + * + * @param maxTime the {@code maxTime} field value + * @return the {@code maxTime} field value + */ private TimePoint maxTime; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TimePoint.java b/src/main/java/org/stellar/sdk/xdr/TimePoint.java index 906dd0597..2f3b2c8ca 100644 --- a/src/main/java/org/stellar/sdk/xdr/TimePoint.java +++ b/src/main/java/org/stellar/sdk/xdr/TimePoint.java @@ -21,6 +21,12 @@ @NoArgsConstructor @AllArgsConstructor public class TimePoint implements XdrElement { + /** + * Value of the {@code TimePoint} field. + * + * @param TimePoint the {@code TimePoint} field value + * @return the {@code TimePoint} field value + */ private Uint64 TimePoint; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TimeSlicedNodeData.java b/src/main/java/org/stellar/sdk/xdr/TimeSlicedNodeData.java index b11076ed1..a1da005f7 100644 --- a/src/main/java/org/stellar/sdk/xdr/TimeSlicedNodeData.java +++ b/src/main/java/org/stellar/sdk/xdr/TimeSlicedNodeData.java @@ -42,15 +42,84 @@ @AllArgsConstructor @Builder(toBuilder = true) public class TimeSlicedNodeData implements XdrElement { + /** + * Value of the {@code addedAuthenticatedPeers} field. + * + * @param addedAuthenticatedPeers the {@code addedAuthenticatedPeers} field value + * @return the {@code addedAuthenticatedPeers} field value + */ private Uint32 addedAuthenticatedPeers; + + /** + * Value of the {@code droppedAuthenticatedPeers} field. + * + * @param droppedAuthenticatedPeers the {@code droppedAuthenticatedPeers} field value + * @return the {@code droppedAuthenticatedPeers} field value + */ private Uint32 droppedAuthenticatedPeers; + + /** + * Value of the {@code totalInboundPeerCount} field. + * + * @param totalInboundPeerCount the {@code totalInboundPeerCount} field value + * @return the {@code totalInboundPeerCount} field value + */ private Uint32 totalInboundPeerCount; + + /** + * Value of the {@code totalOutboundPeerCount} field. + * + * @param totalOutboundPeerCount the {@code totalOutboundPeerCount} field value + * @return the {@code totalOutboundPeerCount} field value + */ private Uint32 totalOutboundPeerCount; + + /** + * Value of the {@code p75SCPFirstToSelfLatencyMs} field. + * + * @param p75SCPFirstToSelfLatencyMs the {@code p75SCPFirstToSelfLatencyMs} field value + * @return the {@code p75SCPFirstToSelfLatencyMs} field value + */ private Uint32 p75SCPFirstToSelfLatencyMs; + + /** + * Value of the {@code p75SCPSelfToOtherLatencyMs} field. + * + * @param p75SCPSelfToOtherLatencyMs the {@code p75SCPSelfToOtherLatencyMs} field value + * @return the {@code p75SCPSelfToOtherLatencyMs} field value + */ private Uint32 p75SCPSelfToOtherLatencyMs; + + /** + * Value of the {@code lostSyncCount} field. + * + * @param lostSyncCount the {@code lostSyncCount} field value + * @return the {@code lostSyncCount} field value + */ private Uint32 lostSyncCount; + + /** + * Value of the {@code isValidator} field. + * + * @param isValidator the {@code isValidator} field value + * @return the {@code isValidator} field value + */ private Boolean isValidator; + + /** + * Value of the {@code maxInboundPeerCount} field. + * + * @param maxInboundPeerCount the {@code maxInboundPeerCount} field value + * @return the {@code maxInboundPeerCount} field value + */ private Uint32 maxInboundPeerCount; + + /** + * Value of the {@code maxOutboundPeerCount} field. + * + * @param maxOutboundPeerCount the {@code maxOutboundPeerCount} field value + * @return the {@code maxOutboundPeerCount} field value + */ private Uint32 maxOutboundPeerCount; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TimeSlicedPeerData.java b/src/main/java/org/stellar/sdk/xdr/TimeSlicedPeerData.java index 5b4f8e415..af9466964 100644 --- a/src/main/java/org/stellar/sdk/xdr/TimeSlicedPeerData.java +++ b/src/main/java/org/stellar/sdk/xdr/TimeSlicedPeerData.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class TimeSlicedPeerData implements XdrElement { + /** + * Value of the {@code peerStats} field. + * + * @param peerStats the {@code peerStats} field value + * @return the {@code peerStats} field value + */ private PeerStats peerStats; + + /** + * Value of the {@code averageLatencyMs} field. + * + * @param averageLatencyMs the {@code averageLatencyMs} field value + * @return the {@code averageLatencyMs} field value + */ private Uint32 averageLatencyMs; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TimeSlicedPeerDataList.java b/src/main/java/org/stellar/sdk/xdr/TimeSlicedPeerDataList.java index 62ac6a5da..4e61e6848 100644 --- a/src/main/java/org/stellar/sdk/xdr/TimeSlicedPeerDataList.java +++ b/src/main/java/org/stellar/sdk/xdr/TimeSlicedPeerDataList.java @@ -22,6 +22,12 @@ @NoArgsConstructor @AllArgsConstructor public class TimeSlicedPeerDataList implements XdrElement { + /** + * Value of the {@code TimeSlicedPeerDataList} field. + * + * @param TimeSlicedPeerDataList the {@code TimeSlicedPeerDataList} field value + * @return the {@code TimeSlicedPeerDataList} field value + */ private TimeSlicedPeerData[] TimeSlicedPeerDataList; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TimeSlicedSurveyRequestMessage.java b/src/main/java/org/stellar/sdk/xdr/TimeSlicedSurveyRequestMessage.java index 9c5153cba..7471d26c8 100644 --- a/src/main/java/org/stellar/sdk/xdr/TimeSlicedSurveyRequestMessage.java +++ b/src/main/java/org/stellar/sdk/xdr/TimeSlicedSurveyRequestMessage.java @@ -30,9 +30,36 @@ @AllArgsConstructor @Builder(toBuilder = true) public class TimeSlicedSurveyRequestMessage implements XdrElement { + /** + * Value of the {@code request} field. + * + * @param request the {@code request} field value + * @return the {@code request} field value + */ private SurveyRequestMessage request; + + /** + * Value of the {@code nonce} field. + * + * @param nonce the {@code nonce} field value + * @return the {@code nonce} field value + */ private Uint32 nonce; + + /** + * Value of the {@code inboundPeersIndex} field. + * + * @param inboundPeersIndex the {@code inboundPeersIndex} field value + * @return the {@code inboundPeersIndex} field value + */ private Uint32 inboundPeersIndex; + + /** + * Value of the {@code outboundPeersIndex} field. + * + * @param outboundPeersIndex the {@code outboundPeersIndex} field value + * @return the {@code outboundPeersIndex} field value + */ private Uint32 outboundPeersIndex; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TimeSlicedSurveyResponseMessage.java b/src/main/java/org/stellar/sdk/xdr/TimeSlicedSurveyResponseMessage.java index 168174733..872e28f83 100644 --- a/src/main/java/org/stellar/sdk/xdr/TimeSlicedSurveyResponseMessage.java +++ b/src/main/java/org/stellar/sdk/xdr/TimeSlicedSurveyResponseMessage.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class TimeSlicedSurveyResponseMessage implements XdrElement { + /** + * Value of the {@code response} field. + * + * @param response the {@code response} field value + * @return the {@code response} field value + */ private SurveyResponseMessage response; + + /** + * Value of the {@code nonce} field. + * + * @param nonce the {@code nonce} field value + * @return the {@code nonce} field value + */ private Uint32 nonce; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TimeSlicedSurveyStartCollectingMessage.java b/src/main/java/org/stellar/sdk/xdr/TimeSlicedSurveyStartCollectingMessage.java index 009b1e41a..f81afc4d6 100644 --- a/src/main/java/org/stellar/sdk/xdr/TimeSlicedSurveyStartCollectingMessage.java +++ b/src/main/java/org/stellar/sdk/xdr/TimeSlicedSurveyStartCollectingMessage.java @@ -29,8 +29,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class TimeSlicedSurveyStartCollectingMessage implements XdrElement { + /** + * Value of the {@code surveyorID} field. + * + * @param surveyorID the {@code surveyorID} field value + * @return the {@code surveyorID} field value + */ private NodeID surveyorID; + + /** + * Value of the {@code nonce} field. + * + * @param nonce the {@code nonce} field value + * @return the {@code nonce} field value + */ private Uint32 nonce; + + /** + * Value of the {@code ledgerNum} field. + * + * @param ledgerNum the {@code ledgerNum} field value + * @return the {@code ledgerNum} field value + */ private Uint32 ledgerNum; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TimeSlicedSurveyStopCollectingMessage.java b/src/main/java/org/stellar/sdk/xdr/TimeSlicedSurveyStopCollectingMessage.java index 9fce87d79..1056b8a52 100644 --- a/src/main/java/org/stellar/sdk/xdr/TimeSlicedSurveyStopCollectingMessage.java +++ b/src/main/java/org/stellar/sdk/xdr/TimeSlicedSurveyStopCollectingMessage.java @@ -29,8 +29,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class TimeSlicedSurveyStopCollectingMessage implements XdrElement { + /** + * Value of the {@code surveyorID} field. + * + * @param surveyorID the {@code surveyorID} field value + * @return the {@code surveyorID} field value + */ private NodeID surveyorID; + + /** + * Value of the {@code nonce} field. + * + * @param nonce the {@code nonce} field value + * @return the {@code nonce} field value + */ private Uint32 nonce; + + /** + * Value of the {@code ledgerNum} field. + * + * @param ledgerNum the {@code ledgerNum} field value + * @return the {@code ledgerNum} field value + */ private Uint32 ledgerNum; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TopologyResponseBodyV2.java b/src/main/java/org/stellar/sdk/xdr/TopologyResponseBodyV2.java index 9d1e91598..a4108f4c6 100644 --- a/src/main/java/org/stellar/sdk/xdr/TopologyResponseBodyV2.java +++ b/src/main/java/org/stellar/sdk/xdr/TopologyResponseBodyV2.java @@ -29,8 +29,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class TopologyResponseBodyV2 implements XdrElement { + /** + * Value of the {@code inboundPeers} field. + * + * @param inboundPeers the {@code inboundPeers} field value + * @return the {@code inboundPeers} field value + */ private TimeSlicedPeerDataList inboundPeers; + + /** + * Value of the {@code outboundPeers} field. + * + * @param outboundPeers the {@code outboundPeers} field value + * @return the {@code outboundPeers} field value + */ private TimeSlicedPeerDataList outboundPeers; + + /** + * Value of the {@code nodeData} field. + * + * @param nodeData the {@code nodeData} field value + * @return the {@code nodeData} field value + */ private TimeSlicedNodeData nodeData; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/Transaction.java b/src/main/java/org/stellar/sdk/xdr/Transaction.java index d8de6aed8..dc045303d 100644 --- a/src/main/java/org/stellar/sdk/xdr/Transaction.java +++ b/src/main/java/org/stellar/sdk/xdr/Transaction.java @@ -51,12 +51,60 @@ @AllArgsConstructor @Builder(toBuilder = true) public class Transaction implements XdrElement { + /** + * Value of the {@code sourceAccount} field. + * + * @param sourceAccount the {@code sourceAccount} field value + * @return the {@code sourceAccount} field value + */ private MuxedAccount sourceAccount; + + /** + * Value of the {@code fee} field. + * + * @param fee the {@code fee} field value + * @return the {@code fee} field value + */ private Uint32 fee; + + /** + * Value of the {@code seqNum} field. + * + * @param seqNum the {@code seqNum} field value + * @return the {@code seqNum} field value + */ private SequenceNumber seqNum; + + /** + * Value of the {@code cond} field. + * + * @param cond the {@code cond} field value + * @return the {@code cond} field value + */ private Preconditions cond; + + /** + * Value of the {@code memo} field. + * + * @param memo the {@code memo} field value + * @return the {@code memo} field value + */ private Memo memo; + + /** + * Value of the {@code operations} field. + * + * @param operations the {@code operations} field value + * @return the {@code operations} field value + */ private Operation[] operations; + + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private TransactionExt ext; public void encode(XdrDataOutputStream stream) throws IOException { @@ -184,7 +232,20 @@ static Transaction fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class TransactionExt implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; + + /** + * Value of the {@code sorobanData} field. + * + * @param sorobanData the {@code sorobanData} field value + * @return the {@code sorobanData} field value + */ private SorobanTransactionData sorobanData; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TransactionEnvelope.java b/src/main/java/org/stellar/sdk/xdr/TransactionEnvelope.java index ac1cc2e83..7d7d5f4d6 100644 --- a/src/main/java/org/stellar/sdk/xdr/TransactionEnvelope.java +++ b/src/main/java/org/stellar/sdk/xdr/TransactionEnvelope.java @@ -32,9 +32,36 @@ @AllArgsConstructor @Builder(toBuilder = true) public class TransactionEnvelope implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private EnvelopeType discriminant; + + /** + * Value of the {@code v0} field. + * + * @param v0 the {@code v0} field value + * @return the {@code v0} field value + */ private TransactionV0Envelope v0; + + /** + * Value of the {@code v1} field. + * + * @param v1 the {@code v1} field value + * @return the {@code v1} field value + */ private TransactionV1Envelope v1; + + /** + * Value of the {@code feeBump} field. + * + * @param feeBump the {@code feeBump} field value + * @return the {@code feeBump} field value + */ private FeeBumpTransactionEnvelope feeBump; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TransactionEvent.java b/src/main/java/org/stellar/sdk/xdr/TransactionEvent.java index f7a2babd9..7735904f2 100644 --- a/src/main/java/org/stellar/sdk/xdr/TransactionEvent.java +++ b/src/main/java/org/stellar/sdk/xdr/TransactionEvent.java @@ -27,7 +27,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class TransactionEvent implements XdrElement { + /** + * Value of the {@code stage} field. + * + * @param stage the {@code stage} field value + * @return the {@code stage} field value + */ private TransactionEventStage stage; + + /** + * Value of the {@code event} field. + * + * @param event the {@code event} field value + * @return the {@code event} field value + */ private ContractEvent event; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TransactionHistoryEntry.java b/src/main/java/org/stellar/sdk/xdr/TransactionHistoryEntry.java index bb0f69c33..bc952ddc8 100644 --- a/src/main/java/org/stellar/sdk/xdr/TransactionHistoryEntry.java +++ b/src/main/java/org/stellar/sdk/xdr/TransactionHistoryEntry.java @@ -38,8 +38,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class TransactionHistoryEntry implements XdrElement { + /** + * Value of the {@code ledgerSeq} field. + * + * @param ledgerSeq the {@code ledgerSeq} field value + * @return the {@code ledgerSeq} field value + */ private Uint32 ledgerSeq; + + /** + * Value of the {@code txSet} field. + * + * @param txSet the {@code txSet} field value + * @return the {@code txSet} field value + */ private TransactionSet txSet; + + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private TransactionHistoryEntryExt ext; public void encode(XdrDataOutputStream stream) throws IOException { @@ -122,7 +142,20 @@ static TransactionHistoryEntry fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class TransactionHistoryEntryExt implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; + + /** + * Value of the {@code generalizedTxSet} field. + * + * @param generalizedTxSet the {@code generalizedTxSet} field value + * @return the {@code generalizedTxSet} field value + */ private GeneralizedTransactionSet generalizedTxSet; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TransactionHistoryResultEntry.java b/src/main/java/org/stellar/sdk/xdr/TransactionHistoryResultEntry.java index 827f60733..23f4aaef9 100644 --- a/src/main/java/org/stellar/sdk/xdr/TransactionHistoryResultEntry.java +++ b/src/main/java/org/stellar/sdk/xdr/TransactionHistoryResultEntry.java @@ -36,8 +36,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class TransactionHistoryResultEntry implements XdrElement { + /** + * Value of the {@code ledgerSeq} field. + * + * @param ledgerSeq the {@code ledgerSeq} field value + * @return the {@code ledgerSeq} field value + */ private Uint32 ledgerSeq; + + /** + * Value of the {@code txResultSet} field. + * + * @param txResultSet the {@code txResultSet} field value + * @return the {@code txResultSet} field value + */ private TransactionResultSet txResultSet; + + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private TransactionHistoryResultEntryExt ext; public void encode(XdrDataOutputStream stream) throws IOException { @@ -121,6 +141,12 @@ static TransactionHistoryResultEntry fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class TransactionHistoryResultEntryExt implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TransactionMeta.java b/src/main/java/org/stellar/sdk/xdr/TransactionMeta.java index 6185670c5..5f356baf4 100644 --- a/src/main/java/org/stellar/sdk/xdr/TransactionMeta.java +++ b/src/main/java/org/stellar/sdk/xdr/TransactionMeta.java @@ -37,11 +37,52 @@ @AllArgsConstructor @Builder(toBuilder = true) public class TransactionMeta implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; + + /** + * Value of the {@code operations} field. + * + * @param operations the {@code operations} field value + * @return the {@code operations} field value + */ private OperationMeta[] operations; + + /** + * Value of the {@code v1} field. + * + * @param v1 the {@code v1} field value + * @return the {@code v1} field value + */ private TransactionMetaV1 v1; + + /** + * Value of the {@code v2} field. + * + * @param v2 the {@code v2} field value + * @return the {@code v2} field value + */ private TransactionMetaV2 v2; + + /** + * Value of the {@code v3} field. + * + * @param v3 the {@code v3} field value + * @return the {@code v3} field value + */ private TransactionMetaV3 v3; + + /** + * Value of the {@code v4} field. + * + * @param v4 the {@code v4} field value + * @return the {@code v4} field value + */ private TransactionMetaV4 v4; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TransactionMetaV1.java b/src/main/java/org/stellar/sdk/xdr/TransactionMetaV1.java index 11026ea2b..f441c42d7 100644 --- a/src/main/java/org/stellar/sdk/xdr/TransactionMetaV1.java +++ b/src/main/java/org/stellar/sdk/xdr/TransactionMetaV1.java @@ -29,7 +29,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class TransactionMetaV1 implements XdrElement { + /** + * Value of the {@code txChanges} field. + * + * @param txChanges the {@code txChanges} field value + * @return the {@code txChanges} field value + */ private LedgerEntryChanges txChanges; + + /** + * Value of the {@code operations} field. + * + * @param operations the {@code operations} field value + * @return the {@code operations} field value + */ private OperationMeta[] operations; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TransactionMetaV2.java b/src/main/java/org/stellar/sdk/xdr/TransactionMetaV2.java index 4c945832e..5978c5354 100644 --- a/src/main/java/org/stellar/sdk/xdr/TransactionMetaV2.java +++ b/src/main/java/org/stellar/sdk/xdr/TransactionMetaV2.java @@ -32,8 +32,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class TransactionMetaV2 implements XdrElement { + /** + * Value of the {@code txChangesBefore} field. + * + * @param txChangesBefore the {@code txChangesBefore} field value + * @return the {@code txChangesBefore} field value + */ private LedgerEntryChanges txChangesBefore; + + /** + * Value of the {@code operations} field. + * + * @param operations the {@code operations} field value + * @return the {@code operations} field value + */ private OperationMeta[] operations; + + /** + * Value of the {@code txChangesAfter} field. + * + * @param txChangesAfter the {@code txChangesAfter} field value + * @return the {@code txChangesAfter} field value + */ private LedgerEntryChanges txChangesAfter; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TransactionMetaV3.java b/src/main/java/org/stellar/sdk/xdr/TransactionMetaV3.java index 178901e5c..ddab8097c 100644 --- a/src/main/java/org/stellar/sdk/xdr/TransactionMetaV3.java +++ b/src/main/java/org/stellar/sdk/xdr/TransactionMetaV3.java @@ -36,10 +36,44 @@ @AllArgsConstructor @Builder(toBuilder = true) public class TransactionMetaV3 implements XdrElement { + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private ExtensionPoint ext; + + /** + * Value of the {@code txChangesBefore} field. + * + * @param txChangesBefore the {@code txChangesBefore} field value + * @return the {@code txChangesBefore} field value + */ private LedgerEntryChanges txChangesBefore; + + /** + * Value of the {@code operations} field. + * + * @param operations the {@code operations} field value + * @return the {@code operations} field value + */ private OperationMeta[] operations; + + /** + * Value of the {@code txChangesAfter} field. + * + * @param txChangesAfter the {@code txChangesAfter} field value + * @return the {@code txChangesAfter} field value + */ private LedgerEntryChanges txChangesAfter; + + /** + * Value of the {@code sorobanMeta} field. + * + * @param sorobanMeta the {@code sorobanMeta} field value + * @return the {@code sorobanMeta} field value + */ private SorobanTransactionMeta sorobanMeta; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TransactionMetaV4.java b/src/main/java/org/stellar/sdk/xdr/TransactionMetaV4.java index ad0512831..564c40acd 100644 --- a/src/main/java/org/stellar/sdk/xdr/TransactionMetaV4.java +++ b/src/main/java/org/stellar/sdk/xdr/TransactionMetaV4.java @@ -39,12 +39,60 @@ @AllArgsConstructor @Builder(toBuilder = true) public class TransactionMetaV4 implements XdrElement { + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private ExtensionPoint ext; + + /** + * Value of the {@code txChangesBefore} field. + * + * @param txChangesBefore the {@code txChangesBefore} field value + * @return the {@code txChangesBefore} field value + */ private LedgerEntryChanges txChangesBefore; + + /** + * Value of the {@code operations} field. + * + * @param operations the {@code operations} field value + * @return the {@code operations} field value + */ private OperationMetaV2[] operations; + + /** + * Value of the {@code txChangesAfter} field. + * + * @param txChangesAfter the {@code txChangesAfter} field value + * @return the {@code txChangesAfter} field value + */ private LedgerEntryChanges txChangesAfter; + + /** + * Value of the {@code sorobanMeta} field. + * + * @param sorobanMeta the {@code sorobanMeta} field value + * @return the {@code sorobanMeta} field value + */ private SorobanTransactionMetaV2 sorobanMeta; + + /** + * Value of the {@code events} field. + * + * @param events the {@code events} field value + * @return the {@code events} field value + */ private TransactionEvent[] events; + + /** + * Value of the {@code diagnosticEvents} field. + * + * @param diagnosticEvents the {@code diagnosticEvents} field value + * @return the {@code diagnosticEvents} field value + */ private DiagnosticEvent[] diagnosticEvents; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TransactionPhase.java b/src/main/java/org/stellar/sdk/xdr/TransactionPhase.java index c34f88247..cf24dac55 100644 --- a/src/main/java/org/stellar/sdk/xdr/TransactionPhase.java +++ b/src/main/java/org/stellar/sdk/xdr/TransactionPhase.java @@ -31,8 +31,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class TransactionPhase implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; + + /** + * Value of the {@code v0Components} field. + * + * @param v0Components the {@code v0Components} field value + * @return the {@code v0Components} field value + */ private TxSetComponent[] v0Components; + + /** + * Value of the {@code parallelTxsComponent} field. + * + * @param parallelTxsComponent the {@code parallelTxsComponent} field value + * @return the {@code parallelTxsComponent} field value + */ private ParallelTxsComponent parallelTxsComponent; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TransactionResult.java b/src/main/java/org/stellar/sdk/xdr/TransactionResult.java index c5534a779..c929cf1b1 100644 --- a/src/main/java/org/stellar/sdk/xdr/TransactionResult.java +++ b/src/main/java/org/stellar/sdk/xdr/TransactionResult.java @@ -65,8 +65,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class TransactionResult implements XdrElement { + /** + * Value of the {@code feeCharged} field. + * + * @param feeCharged the {@code feeCharged} field value + * @return the {@code feeCharged} field value + */ private Int64 feeCharged; + + /** + * Value of the {@code result} field. + * + * @param result the {@code result} field value + * @return the {@code result} field value + */ private TransactionResultResult result; + + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private TransactionResultExt ext; public void encode(XdrDataOutputStream stream) throws IOException { @@ -169,8 +189,28 @@ static TransactionResult fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class TransactionResultResult implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private TransactionResultCode discriminant; + + /** + * Value of the {@code innerResultPair} field. + * + * @param innerResultPair the {@code innerResultPair} field value + * @return the {@code innerResultPair} field value + */ private InnerTransactionResultPair innerResultPair; + + /** + * Value of the {@code results} field. + * + * @param results the {@code results} field value + * @return the {@code results} field value + */ private OperationResult[] results; public void encode(XdrDataOutputStream stream) throws IOException { @@ -456,6 +496,12 @@ static TransactionResultResult fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class TransactionResultExt implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TransactionResultMeta.java b/src/main/java/org/stellar/sdk/xdr/TransactionResultMeta.java index bf47ad51b..3657033a7 100644 --- a/src/main/java/org/stellar/sdk/xdr/TransactionResultMeta.java +++ b/src/main/java/org/stellar/sdk/xdr/TransactionResultMeta.java @@ -29,8 +29,28 @@ @AllArgsConstructor @Builder(toBuilder = true) public class TransactionResultMeta implements XdrElement { + /** + * Value of the {@code result} field. + * + * @param result the {@code result} field value + * @return the {@code result} field value + */ private TransactionResultPair result; + + /** + * Value of the {@code feeProcessing} field. + * + * @param feeProcessing the {@code feeProcessing} field value + * @return the {@code feeProcessing} field value + */ private LedgerEntryChanges feeProcessing; + + /** + * Value of the {@code txApplyProcessing} field. + * + * @param txApplyProcessing the {@code txApplyProcessing} field value + * @return the {@code txApplyProcessing} field value + */ private TransactionMeta txApplyProcessing; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TransactionResultMetaV1.java b/src/main/java/org/stellar/sdk/xdr/TransactionResultMetaV1.java index 3128db639..da394e2db 100644 --- a/src/main/java/org/stellar/sdk/xdr/TransactionResultMetaV1.java +++ b/src/main/java/org/stellar/sdk/xdr/TransactionResultMetaV1.java @@ -33,10 +33,44 @@ @AllArgsConstructor @Builder(toBuilder = true) public class TransactionResultMetaV1 implements XdrElement { + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private ExtensionPoint ext; + + /** + * Value of the {@code result} field. + * + * @param result the {@code result} field value + * @return the {@code result} field value + */ private TransactionResultPair result; + + /** + * Value of the {@code feeProcessing} field. + * + * @param feeProcessing the {@code feeProcessing} field value + * @return the {@code feeProcessing} field value + */ private LedgerEntryChanges feeProcessing; + + /** + * Value of the {@code txApplyProcessing} field. + * + * @param txApplyProcessing the {@code txApplyProcessing} field value + * @return the {@code txApplyProcessing} field value + */ private TransactionMeta txApplyProcessing; + + /** + * Value of the {@code postTxApplyFeeProcessing} field. + * + * @param postTxApplyFeeProcessing the {@code postTxApplyFeeProcessing} field value + * @return the {@code postTxApplyFeeProcessing} field value + */ private LedgerEntryChanges postTxApplyFeeProcessing; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TransactionResultPair.java b/src/main/java/org/stellar/sdk/xdr/TransactionResultPair.java index 99d738da7..a0193192f 100644 --- a/src/main/java/org/stellar/sdk/xdr/TransactionResultPair.java +++ b/src/main/java/org/stellar/sdk/xdr/TransactionResultPair.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class TransactionResultPair implements XdrElement { + /** + * Value of the {@code transactionHash} field. + * + * @param transactionHash the {@code transactionHash} field value + * @return the {@code transactionHash} field value + */ private Hash transactionHash; + + /** + * Value of the {@code result} field. + * + * @param result the {@code result} field value + * @return the {@code result} field value + */ private TransactionResult result; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TransactionResultSet.java b/src/main/java/org/stellar/sdk/xdr/TransactionResultSet.java index 689ca2c7b..a513e29ef 100644 --- a/src/main/java/org/stellar/sdk/xdr/TransactionResultSet.java +++ b/src/main/java/org/stellar/sdk/xdr/TransactionResultSet.java @@ -28,6 +28,12 @@ @AllArgsConstructor @Builder(toBuilder = true) public class TransactionResultSet implements XdrElement { + /** + * Value of the {@code results} field. + * + * @param results the {@code results} field value + * @return the {@code results} field value + */ private TransactionResultPair[] results; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TransactionSet.java b/src/main/java/org/stellar/sdk/xdr/TransactionSet.java index 3b9a743f5..e97de4075 100644 --- a/src/main/java/org/stellar/sdk/xdr/TransactionSet.java +++ b/src/main/java/org/stellar/sdk/xdr/TransactionSet.java @@ -29,7 +29,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class TransactionSet implements XdrElement { + /** + * Value of the {@code previousLedgerHash} field. + * + * @param previousLedgerHash the {@code previousLedgerHash} field value + * @return the {@code previousLedgerHash} field value + */ private Hash previousLedgerHash; + + /** + * Value of the {@code txs} field. + * + * @param txs the {@code txs} field value + * @return the {@code txs} field value + */ private TransactionEnvelope[] txs; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TransactionSetV1.java b/src/main/java/org/stellar/sdk/xdr/TransactionSetV1.java index 532fcff54..7ebbb31bc 100644 --- a/src/main/java/org/stellar/sdk/xdr/TransactionSetV1.java +++ b/src/main/java/org/stellar/sdk/xdr/TransactionSetV1.java @@ -29,7 +29,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class TransactionSetV1 implements XdrElement { + /** + * Value of the {@code previousLedgerHash} field. + * + * @param previousLedgerHash the {@code previousLedgerHash} field value + * @return the {@code previousLedgerHash} field value + */ private Hash previousLedgerHash; + + /** + * Value of the {@code phases} field. + * + * @param phases the {@code phases} field value + * @return the {@code phases} field value + */ private TransactionPhase[] phases; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TransactionSignaturePayload.java b/src/main/java/org/stellar/sdk/xdr/TransactionSignaturePayload.java index 7e889414a..ad8688240 100644 --- a/src/main/java/org/stellar/sdk/xdr/TransactionSignaturePayload.java +++ b/src/main/java/org/stellar/sdk/xdr/TransactionSignaturePayload.java @@ -36,7 +36,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class TransactionSignaturePayload implements XdrElement { + /** + * Value of the {@code networkId} field. + * + * @param networkId the {@code networkId} field value + * @return the {@code networkId} field value + */ private Hash networkId; + + /** + * Value of the {@code taggedTransaction} field. + * + * @param taggedTransaction the {@code taggedTransaction} field value + * @return the {@code taggedTransaction} field value + */ private TransactionSignaturePayloadTaggedTransaction taggedTransaction; public void encode(XdrDataOutputStream stream) throws IOException { @@ -120,8 +133,28 @@ static TransactionSignaturePayload fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class TransactionSignaturePayloadTaggedTransaction implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private EnvelopeType discriminant; + + /** + * Value of the {@code tx} field. + * + * @param tx the {@code tx} field value + * @return the {@code tx} field value + */ private Transaction tx; + + /** + * Value of the {@code feeBump} field. + * + * @param feeBump the {@code feeBump} field value + * @return the {@code feeBump} field value + */ private FeeBumpTransaction feeBump; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TransactionV0.java b/src/main/java/org/stellar/sdk/xdr/TransactionV0.java index bda014c6e..a10125cc2 100644 --- a/src/main/java/org/stellar/sdk/xdr/TransactionV0.java +++ b/src/main/java/org/stellar/sdk/xdr/TransactionV0.java @@ -39,12 +39,60 @@ @AllArgsConstructor @Builder(toBuilder = true) public class TransactionV0 implements XdrElement { + /** + * Value of the {@code sourceAccountEd25519} field. + * + * @param sourceAccountEd25519 the {@code sourceAccountEd25519} field value + * @return the {@code sourceAccountEd25519} field value + */ private Uint256 sourceAccountEd25519; + + /** + * Value of the {@code fee} field. + * + * @param fee the {@code fee} field value + * @return the {@code fee} field value + */ private Uint32 fee; + + /** + * Value of the {@code seqNum} field. + * + * @param seqNum the {@code seqNum} field value + * @return the {@code seqNum} field value + */ private SequenceNumber seqNum; + + /** + * Value of the {@code timeBounds} field. + * + * @param timeBounds the {@code timeBounds} field value + * @return the {@code timeBounds} field value + */ private TimeBounds timeBounds; + + /** + * Value of the {@code memo} field. + * + * @param memo the {@code memo} field value + * @return the {@code memo} field value + */ private Memo memo; + + /** + * Value of the {@code operations} field. + * + * @param operations the {@code operations} field value + * @return the {@code operations} field value + */ private Operation[] operations; + + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private TransactionV0Ext ext; public void encode(XdrDataOutputStream stream) throws IOException { @@ -181,6 +229,12 @@ static TransactionV0 fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class TransactionV0Ext implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TransactionV0Envelope.java b/src/main/java/org/stellar/sdk/xdr/TransactionV0Envelope.java index af8517d2a..32fd5907c 100644 --- a/src/main/java/org/stellar/sdk/xdr/TransactionV0Envelope.java +++ b/src/main/java/org/stellar/sdk/xdr/TransactionV0Envelope.java @@ -31,7 +31,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class TransactionV0Envelope implements XdrElement { + /** + * Value of the {@code tx} field. + * + * @param tx the {@code tx} field value + * @return the {@code tx} field value + */ private TransactionV0 tx; + + /** + * Value of the {@code signatures} field. + * + * @param signatures the {@code signatures} field value + * @return the {@code signatures} field value + */ private DecoratedSignature[] signatures; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TransactionV1Envelope.java b/src/main/java/org/stellar/sdk/xdr/TransactionV1Envelope.java index 5dfce040f..a888c757e 100644 --- a/src/main/java/org/stellar/sdk/xdr/TransactionV1Envelope.java +++ b/src/main/java/org/stellar/sdk/xdr/TransactionV1Envelope.java @@ -31,7 +31,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class TransactionV1Envelope implements XdrElement { + /** + * Value of the {@code tx} field. + * + * @param tx the {@code tx} field value + * @return the {@code tx} field value + */ private Transaction tx; + + /** + * Value of the {@code signatures} field. + * + * @param signatures the {@code signatures} field value + * @return the {@code signatures} field value + */ private DecoratedSignature[] signatures; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TrustLineAsset.java b/src/main/java/org/stellar/sdk/xdr/TrustLineAsset.java index 846ca8168..315378803 100644 --- a/src/main/java/org/stellar/sdk/xdr/TrustLineAsset.java +++ b/src/main/java/org/stellar/sdk/xdr/TrustLineAsset.java @@ -39,9 +39,36 @@ @AllArgsConstructor @Builder(toBuilder = true) public class TrustLineAsset implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private AssetType discriminant; + + /** + * Value of the {@code alphaNum4} field. + * + * @param alphaNum4 the {@code alphaNum4} field value + * @return the {@code alphaNum4} field value + */ private AlphaNum4 alphaNum4; + + /** + * Value of the {@code alphaNum12} field. + * + * @param alphaNum12 the {@code alphaNum12} field value + * @return the {@code alphaNum12} field value + */ private AlphaNum12 alphaNum12; + + /** + * Value of the {@code liquidityPoolID} field. + * + * @param liquidityPoolID the {@code liquidityPoolID} field value + * @return the {@code liquidityPoolID} field value + */ private PoolID liquidityPoolID; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TrustLineEntry.java b/src/main/java/org/stellar/sdk/xdr/TrustLineEntry.java index 6e01b315c..61c6d7fac 100644 --- a/src/main/java/org/stellar/sdk/xdr/TrustLineEntry.java +++ b/src/main/java/org/stellar/sdk/xdr/TrustLineEntry.java @@ -55,11 +55,52 @@ @AllArgsConstructor @Builder(toBuilder = true) public class TrustLineEntry implements XdrElement { + /** + * Value of the {@code accountID} field. + * + * @param accountID the {@code accountID} field value + * @return the {@code accountID} field value + */ private AccountID accountID; + + /** + * Value of the {@code asset} field. + * + * @param asset the {@code asset} field value + * @return the {@code asset} field value + */ private TrustLineAsset asset; + + /** + * Value of the {@code balance} field. + * + * @param balance the {@code balance} field value + * @return the {@code balance} field value + */ private Int64 balance; + + /** + * Value of the {@code limit} field. + * + * @param limit the {@code limit} field value + * @return the {@code limit} field value + */ private Int64 limit; + + /** + * Value of the {@code flags} field. + * + * @param flags the {@code flags} field value + * @return the {@code flags} field value + */ private Uint32 flags; + + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private TrustLineEntryExt ext; public void encode(XdrDataOutputStream stream) throws IOException { @@ -165,7 +206,20 @@ static TrustLineEntry fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class TrustLineEntryExt implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; + + /** + * Value of the {@code v1} field. + * + * @param v1 the {@code v1} field value + * @return the {@code v1} field value + */ private TrustLineEntryV1 v1; public void encode(XdrDataOutputStream stream) throws IOException { @@ -293,7 +347,20 @@ static TrustLineEntryExt fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class TrustLineEntryV1 implements XdrElement { + /** + * Value of the {@code liabilities} field. + * + * @param liabilities the {@code liabilities} field value + * @return the {@code liabilities} field value + */ private Liabilities liabilities; + + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private TrustLineEntryV1Ext ext; public void encode(XdrDataOutputStream stream) throws IOException { @@ -372,7 +439,20 @@ static TrustLineEntryV1 fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class TrustLineEntryV1Ext implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; + + /** + * Value of the {@code v2} field. + * + * @param v2 the {@code v2} field value + * @return the {@code v2} field value + */ private TrustLineEntryExtensionV2 v2; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TrustLineEntryExtensionV2.java b/src/main/java/org/stellar/sdk/xdr/TrustLineEntryExtensionV2.java index 94b021b1e..0278368ba 100644 --- a/src/main/java/org/stellar/sdk/xdr/TrustLineEntryExtensionV2.java +++ b/src/main/java/org/stellar/sdk/xdr/TrustLineEntryExtensionV2.java @@ -34,7 +34,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class TrustLineEntryExtensionV2 implements XdrElement { + /** + * Value of the {@code liquidityPoolUseCount} field. + * + * @param liquidityPoolUseCount the {@code liquidityPoolUseCount} field value + * @return the {@code liquidityPoolUseCount} field value + */ private Int32 liquidityPoolUseCount; + + /** + * Value of the {@code ext} field. + * + * @param ext the {@code ext} field value + * @return the {@code ext} field value + */ private TrustLineEntryExtensionV2Ext ext; public void encode(XdrDataOutputStream stream) throws IOException { @@ -111,6 +124,12 @@ static TrustLineEntryExtensionV2 fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class TrustLineEntryExtensionV2Ext implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private Integer discriminant; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TxAdvertVector.java b/src/main/java/org/stellar/sdk/xdr/TxAdvertVector.java index 4e274292c..ecf4d0390 100644 --- a/src/main/java/org/stellar/sdk/xdr/TxAdvertVector.java +++ b/src/main/java/org/stellar/sdk/xdr/TxAdvertVector.java @@ -22,6 +22,12 @@ @NoArgsConstructor @AllArgsConstructor public class TxAdvertVector implements XdrElement { + /** + * Value of the {@code TxAdvertVector} field. + * + * @param TxAdvertVector the {@code TxAdvertVector} field value + * @return the {@code TxAdvertVector} field value + */ private Hash[] TxAdvertVector; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TxDemandVector.java b/src/main/java/org/stellar/sdk/xdr/TxDemandVector.java index e9e5cf09e..e2488e6f5 100644 --- a/src/main/java/org/stellar/sdk/xdr/TxDemandVector.java +++ b/src/main/java/org/stellar/sdk/xdr/TxDemandVector.java @@ -22,6 +22,12 @@ @NoArgsConstructor @AllArgsConstructor public class TxDemandVector implements XdrElement { + /** + * Value of the {@code TxDemandVector} field. + * + * @param TxDemandVector the {@code TxDemandVector} field value + * @return the {@code TxDemandVector} field value + */ private Hash[] TxDemandVector; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/TxSetComponent.java b/src/main/java/org/stellar/sdk/xdr/TxSetComponent.java index 3770c8512..574a63357 100644 --- a/src/main/java/org/stellar/sdk/xdr/TxSetComponent.java +++ b/src/main/java/org/stellar/sdk/xdr/TxSetComponent.java @@ -33,7 +33,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class TxSetComponent implements XdrElement { + /** + * Value of the {@code discriminant} field. + * + * @param discriminant the {@code discriminant} field value + * @return the {@code discriminant} field value + */ private TxSetComponentType discriminant; + + /** + * Value of the {@code txsMaybeDiscountedFee} field. + * + * @param txsMaybeDiscountedFee the {@code txsMaybeDiscountedFee} field value + * @return the {@code txsMaybeDiscountedFee} field value + */ private TxSetComponentTxsMaybeDiscountedFee txsMaybeDiscountedFee; public void encode(XdrDataOutputStream stream) throws IOException { @@ -138,7 +151,20 @@ static TxSetComponent fromJsonObject(Object json) { @AllArgsConstructor @Builder(toBuilder = true) public static class TxSetComponentTxsMaybeDiscountedFee implements XdrElement { + /** + * Value of the {@code baseFee} field. + * + * @param baseFee the {@code baseFee} field value + * @return the {@code baseFee} field value + */ private Int64 baseFee; + + /** + * Value of the {@code txs} field. + * + * @param txs the {@code txs} field value + * @return the {@code txs} field value + */ private TransactionEnvelope[] txs; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/UInt128Parts.java b/src/main/java/org/stellar/sdk/xdr/UInt128Parts.java index 3406d823f..cf4e933eb 100644 --- a/src/main/java/org/stellar/sdk/xdr/UInt128Parts.java +++ b/src/main/java/org/stellar/sdk/xdr/UInt128Parts.java @@ -27,7 +27,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class UInt128Parts implements XdrElement { + /** + * Value of the {@code hi} field. + * + * @param hi the {@code hi} field value + * @return the {@code hi} field value + */ private Uint64 hi; + + /** + * Value of the {@code lo} field. + * + * @param lo the {@code lo} field value + * @return the {@code lo} field value + */ private Uint64 lo; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/UInt256Parts.java b/src/main/java/org/stellar/sdk/xdr/UInt256Parts.java index b47effb78..82e91fa42 100644 --- a/src/main/java/org/stellar/sdk/xdr/UInt256Parts.java +++ b/src/main/java/org/stellar/sdk/xdr/UInt256Parts.java @@ -29,9 +29,36 @@ @AllArgsConstructor @Builder(toBuilder = true) public class UInt256Parts implements XdrElement { + /** + * Value of the {@code hi_hi} field. + * + * @param hi_hi the {@code hi_hi} field value + * @return the {@code hi_hi} field value + */ private Uint64 hi_hi; + + /** + * Value of the {@code hi_lo} field. + * + * @param hi_lo the {@code hi_lo} field value + * @return the {@code hi_lo} field value + */ private Uint64 hi_lo; + + /** + * Value of the {@code lo_hi} field. + * + * @param lo_hi the {@code lo_hi} field value + * @return the {@code lo_hi} field value + */ private Uint64 lo_hi; + + /** + * Value of the {@code lo_lo} field. + * + * @param lo_lo the {@code lo_lo} field value + * @return the {@code lo_lo} field value + */ private Uint64 lo_lo; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/Uint256.java b/src/main/java/org/stellar/sdk/xdr/Uint256.java index beda3bc9f..79a67080f 100644 --- a/src/main/java/org/stellar/sdk/xdr/Uint256.java +++ b/src/main/java/org/stellar/sdk/xdr/Uint256.java @@ -21,6 +21,12 @@ @NoArgsConstructor @AllArgsConstructor public class Uint256 implements XdrElement { + /** + * Value of the {@code uint256} field. + * + * @param uint256 the {@code uint256} field value + * @return the {@code uint256} field value + */ private byte[] uint256; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/Uint32.java b/src/main/java/org/stellar/sdk/xdr/Uint32.java index 1f5e2ad89..737912e69 100644 --- a/src/main/java/org/stellar/sdk/xdr/Uint32.java +++ b/src/main/java/org/stellar/sdk/xdr/Uint32.java @@ -21,6 +21,12 @@ @NoArgsConstructor @AllArgsConstructor public class Uint32 implements XdrElement { + /** + * Value of the {@code uint32} field. + * + * @param uint32 the {@code uint32} field value + * @return the {@code uint32} field value + */ private XdrUnsignedInteger uint32; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/Uint64.java b/src/main/java/org/stellar/sdk/xdr/Uint64.java index 30000ffa9..305a23bd3 100644 --- a/src/main/java/org/stellar/sdk/xdr/Uint64.java +++ b/src/main/java/org/stellar/sdk/xdr/Uint64.java @@ -21,6 +21,12 @@ @NoArgsConstructor @AllArgsConstructor public class Uint64 implements XdrElement { + /** + * Value of the {@code uint64} field. + * + * @param uint64 the {@code uint64} field value + * @return the {@code uint64} field value + */ private XdrUnsignedHyperInteger uint64; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/UpgradeEntryMeta.java b/src/main/java/org/stellar/sdk/xdr/UpgradeEntryMeta.java index 9050b55ad..8e2f75811 100644 --- a/src/main/java/org/stellar/sdk/xdr/UpgradeEntryMeta.java +++ b/src/main/java/org/stellar/sdk/xdr/UpgradeEntryMeta.java @@ -28,7 +28,20 @@ @AllArgsConstructor @Builder(toBuilder = true) public class UpgradeEntryMeta implements XdrElement { + /** + * Value of the {@code upgrade} field. + * + * @param upgrade the {@code upgrade} field value + * @return the {@code upgrade} field value + */ private LedgerUpgrade upgrade; + + /** + * Value of the {@code changes} field. + * + * @param changes the {@code changes} field value + * @return the {@code changes} field value + */ private LedgerEntryChanges changes; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/UpgradeType.java b/src/main/java/org/stellar/sdk/xdr/UpgradeType.java index 644656f30..ce76b9476 100644 --- a/src/main/java/org/stellar/sdk/xdr/UpgradeType.java +++ b/src/main/java/org/stellar/sdk/xdr/UpgradeType.java @@ -21,6 +21,12 @@ @NoArgsConstructor @AllArgsConstructor public class UpgradeType implements XdrElement { + /** + * Value of the {@code UpgradeType} field. + * + * @param UpgradeType the {@code UpgradeType} field value + * @return the {@code UpgradeType} field value + */ private byte[] UpgradeType; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/Value.java b/src/main/java/org/stellar/sdk/xdr/Value.java index 71c7ab655..0e4ced847 100644 --- a/src/main/java/org/stellar/sdk/xdr/Value.java +++ b/src/main/java/org/stellar/sdk/xdr/Value.java @@ -21,6 +21,12 @@ @NoArgsConstructor @AllArgsConstructor public class Value implements XdrElement { + /** + * Value of the {@code Value} field. + * + * @param Value the {@code Value} field value + * @return the {@code Value} field value + */ private byte[] Value; public void encode(XdrDataOutputStream stream) throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/XdrDataInputStream.java b/src/main/java/org/stellar/sdk/xdr/XdrDataInputStream.java index 4a2b773b3..43510c8c6 100644 --- a/src/main/java/org/stellar/sdk/xdr/XdrDataInputStream.java +++ b/src/main/java/org/stellar/sdk/xdr/XdrDataInputStream.java @@ -6,6 +6,7 @@ import java.io.InputStream; import lombok.Setter; +/** XDR-aware input stream with padding handling and decode safety checks. */ public class XdrDataInputStream extends DataInputStream { /** Default maximum decoding depth to prevent stack overflow from deeply nested structures. */ @@ -18,11 +19,13 @@ public class XdrDataInputStream extends DataInputStream { * Maximum input length, -1 if unknown. This is used to validate that the declared size of * variable-length arrays/opaques doesn't exceed the remaining input length, preventing DoS * attacks. + * + * @param maxInputLen the maximum input length, or -1 if unknown */ @Setter private int maxInputLen = -1; /** - * Creates a XdrDataInputStream that uses the specified underlying InputStream. + * Creates an XdrDataInputStream that uses the specified underlying InputStream. * * @param in the specified input stream */ @@ -66,6 +69,8 @@ public boolean readXdrBoolean() throws IOException { * @deprecated This method does not validate the array length and may cause OutOfMemoryError or * NegativeArraySizeException with untrusted input. Use generated XDR type decoders instead * which include proper validation. + * @return the decoded integer array + * @throws IOException if an I/O error occurs while reading the array */ @Deprecated public int[] readIntArray() throws IOException { @@ -85,6 +90,8 @@ private int[] readIntArray(int l) throws IOException { * @deprecated This method does not validate the array length and may cause OutOfMemoryError or * NegativeArraySizeException with untrusted input. Use generated XDR type decoders instead * which include proper validation. + * @return the decoded float array + * @throws IOException if an I/O error occurs while reading the array */ @Deprecated public float[] readFloatArray() throws IOException { @@ -104,6 +111,8 @@ private float[] readFloatArray(int l) throws IOException { * @deprecated This method does not validate the array length and may cause OutOfMemoryError or * NegativeArraySizeException with untrusted input. Use generated XDR type decoders instead * which include proper validation. + * @return the decoded double array + * @throws IOException if an I/O error occurs while reading the array */ @Deprecated public double[] readDoubleArray() throws IOException { diff --git a/src/main/java/org/stellar/sdk/xdr/XdrDataOutputStream.java b/src/main/java/org/stellar/sdk/xdr/XdrDataOutputStream.java index 7c56d9767..47288c14a 100644 --- a/src/main/java/org/stellar/sdk/xdr/XdrDataOutputStream.java +++ b/src/main/java/org/stellar/sdk/xdr/XdrDataOutputStream.java @@ -4,15 +4,27 @@ import java.io.IOException; import java.io.OutputStream; +/** XDR-aware output stream that writes variable-length values with the required padding. */ public class XdrDataOutputStream extends DataOutputStream { private final XdrOutputStream mOut; + /** + * Creates an XdrDataOutputStream that uses the specified underlying OutputStream. + * + * @param out the specified output stream + */ public XdrDataOutputStream(OutputStream out) { super(new XdrOutputStream(out)); mOut = (XdrOutputStream) super.out; } + /** + * Writes an XDR variable-length array of integers. + * + * @param a the array to write + * @throws IOException if an I/O error occurs while writing the array + */ public void writeIntArray(int[] a) throws IOException { writeInt(a.length); writeIntArray(a, a.length); @@ -24,6 +36,12 @@ private void writeIntArray(int[] a, int l) throws IOException { } } + /** + * Writes an XDR variable-length array of floats. + * + * @param a the array to write + * @throws IOException if an I/O error occurs while writing the array + */ public void writeFloatArray(float[] a) throws IOException { writeInt(a.length); writeFloatArray(a, a.length); @@ -35,6 +53,12 @@ private void writeFloatArray(float[] a, int l) throws IOException { } } + /** + * Writes an XDR variable-length array of doubles. + * + * @param a the array to write + * @throws IOException if an I/O error occurs while writing the array + */ public void writeDoubleArray(double[] a) throws IOException { writeInt(a.length); writeDoubleArray(a, a.length); diff --git a/src/main/java/org/stellar/sdk/xdr/XdrElement.java b/src/main/java/org/stellar/sdk/xdr/XdrElement.java index ef8f9efd6..99e832356 100644 --- a/src/main/java/org/stellar/sdk/xdr/XdrElement.java +++ b/src/main/java/org/stellar/sdk/xdr/XdrElement.java @@ -16,6 +16,7 @@ /** Common parent interface for all generated classes. */ public interface XdrElement { + /** Shared Gson instance used by generated XDR classes for JSON serialization. */ Gson gson = new GsonBuilder() .disableHtmlEscaping() @@ -23,12 +24,30 @@ public interface XdrElement { .setObjectToNumberStrategy(ToNumberPolicy.BIG_DECIMAL) .create(); + /** + * Encodes this value to XDR and writes it to the provided stream. + * + * @param stream the destination XDR output stream + * @throws IOException if an I/O error occurs while writing the value + */ void encode(XdrDataOutputStream stream) throws IOException; + /** + * Encodes this value to XDR and returns the base64-encoded result. + * + * @return the base64-encoded XDR representation + * @throws IOException if an I/O error occurs while encoding the value + */ default String toXdrBase64() throws IOException { return Base64Factory.getInstance().encodeToString(toXdrByteArray()); } + /** + * Encodes this value to XDR and returns the raw bytes. + * + * @return the raw XDR byte representation + * @throws IOException if an I/O error occurs while encoding the value + */ default byte[] toXdrByteArray() throws IOException { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); XdrDataOutputStream xdrDataOutputStream = new XdrDataOutputStream(byteArrayOutputStream); @@ -36,8 +55,19 @@ default byte[] toXdrByteArray() throws IOException { return byteArrayOutputStream.toByteArray(); } + /** + * Serializes this value to JSON. + * + * @return the JSON representation of this value + */ String toJson(); + /** + * Returns the lowercase hexadecimal representation of a byte array. + * + * @param bytes the bytes to encode + * @return the lowercase hexadecimal representation + */ static String bytesToHex(byte[] bytes) { StringBuilder sb = new StringBuilder(bytes.length * 2); for (byte b : bytes) { @@ -46,6 +76,13 @@ static String bytesToHex(byte[] bytes) { return sb.toString(); } + /** + * Decodes a hexadecimal string into bytes. + * + * @param hex the hexadecimal string to decode + * @return the decoded bytes + * @throws IllegalArgumentException if the input length is odd or contains non-hex characters + */ static byte[] hexToBytes(String hex) { if (hex.length() % 2 != 0) { throw new IllegalArgumentException("Hex string must have an even length"); @@ -63,6 +100,12 @@ static byte[] hexToBytes(String hex) { return data; } + /** + * Converts a byte array to an escaped ASCII string suitable for JSON serialization. + * + * @param data the bytes to encode + * @return the escaped ASCII representation + */ static String bytesToEscapedAscii(byte[] data) { StringBuilder sb = new StringBuilder(); for (byte b : data) { @@ -95,6 +138,13 @@ static String bytesToEscapedAscii(byte[] data) { return sb.toString(); } + /** + * Decodes an escaped ASCII string produced by {@link #bytesToEscapedAscii(byte[])}. + * + * @param s the escaped ASCII string to decode + * @return the decoded bytes + * @throws IllegalArgumentException if the input contains invalid escape sequences or characters + */ static byte[] escapedAsciiToBytes(String s) { ByteArrayOutputStream out = new ByteArrayOutputStream(); int i = 0; @@ -155,6 +205,13 @@ static byte[] escapedAsciiToBytes(String s) { return out.toByteArray(); } + /** + * Converts a JSON scalar into a Java {@code long}. + * + * @param json the JSON value to convert + * @return the converted {@code long} value + * @throws IllegalArgumentException if the JSON value is not a string or number + */ static long jsonToLong(Object json) { if (json instanceof String) { return Long.parseLong((String) json); @@ -168,6 +225,13 @@ static long jsonToLong(Object json) { throw new IllegalArgumentException("Expected JSON string or number, got: " + json); } + /** + * Converts a JSON scalar into a {@link BigInteger}. + * + * @param json the JSON value to convert + * @return the converted {@link BigInteger} value + * @throws IllegalArgumentException if the JSON value is not a string or number + */ static BigInteger jsonToBigInteger(Object json) { if (json instanceof String) { return new BigInteger((String) json); @@ -181,6 +245,14 @@ static BigInteger jsonToBigInteger(Object json) { throw new IllegalArgumentException("Expected JSON string or number, got: " + json); } + /** + * Converts a Java array into a JSON array using the provided mapper. + * + * @param array the array to convert + * @param mapper maps each element index to a JSON-compatible value + * @param the Java element type + * @return the converted JSON array + */ @SuppressWarnings("unchecked") static List arrayToJsonArray(T[] array, IntFunction mapper) { List list = new ArrayList<>(array.length); @@ -190,6 +262,15 @@ static List arrayToJsonArray(T[] array, IntFunction mapper) return list; } + /** + * Converts a JSON array into a Java array using the provided mapper. + * + * @param list the JSON array to convert + * @param clazz the Java array component type + * @param mapper maps each JSON value to the target Java type + * @param the Java element type + * @return the converted Java array + */ @SuppressWarnings("unchecked") static T[] jsonArrayToArray(List list, Class clazz, Function mapper) { T[] array = (T[]) Array.newInstance(clazz, list.size()); diff --git a/src/main/java/org/stellar/sdk/xdr/XdrString.java b/src/main/java/org/stellar/sdk/xdr/XdrString.java index f6d40ea7f..9366d8ae0 100644 --- a/src/main/java/org/stellar/sdk/xdr/XdrString.java +++ b/src/main/java/org/stellar/sdk/xdr/XdrString.java @@ -6,24 +6,55 @@ import lombok.Value; import org.stellar.sdk.Base64Factory; +/** Represents XDR string data. */ @Value public class XdrString implements XdrElement { + /** + * Raw bytes of the XDR string value. + * + * @return the encoded string bytes + */ byte[] bytes; + /** + * Creates an {@link XdrString} from raw bytes. + * + * @param bytes the string bytes + */ public XdrString(byte[] bytes) { this.bytes = bytes; } + /** + * Creates an {@link XdrString} from UTF-8 text. + * + * @param text the text value + */ public XdrString(String text) { this.bytes = text.getBytes(StandardCharsets.UTF_8); } + /** + * Encodes this string to XDR. + * + * @param stream the destination XDR output stream + * @throws IOException if an I/O error occurs while writing the value + */ @Override public void encode(XdrDataOutputStream stream) throws IOException { stream.writeInt(this.bytes.length); stream.write(this.bytes, 0, this.bytes.length); } + /** + * Decodes an {@link XdrString} from the provided stream. + * + * @param stream the source XDR input stream + * @param maxDepth the maximum decoding depth, ignored for this leaf type + * @param maxSize the maximum allowed string size in bytes + * @return the decoded {@link XdrString} + * @throws IOException if the encoded size is invalid or an I/O error occurs + */ public static XdrString decode(XdrDataInputStream stream, int maxDepth, int maxSize) throws IOException { // maxDepth is intentionally not checked - XdrString is a leaf type with no recursive decoding @@ -44,19 +75,50 @@ public static XdrString decode(XdrDataInputStream stream, int maxDepth, int maxS return new XdrString(bytes); } + /** + * Decodes an {@link XdrString} from the provided stream using the default maximum depth. + * + * @param stream the source XDR input stream + * @param maxSize the maximum allowed string size in bytes + * @return the decoded {@link XdrString} + * @throws IOException if the encoded size is invalid or an I/O error occurs + */ public static XdrString decode(XdrDataInputStream stream, int maxSize) throws IOException { return decode(stream, XdrDataInputStream.DEFAULT_MAX_DEPTH, maxSize); } + /** + * Decodes an {@link XdrString} from a base64-encoded XDR string. + * + * @param xdr the base64-encoded XDR string + * @param maxSize the maximum allowed string size in bytes + * @return the decoded {@link XdrString} + * @throws IOException if the input is invalid or cannot be decoded + */ public static XdrString fromXdrBase64(String xdr, int maxSize) throws IOException { byte[] bytes = Base64Factory.getInstance().decode(xdr); return fromXdrByteArray(bytes, maxSize); } + /** + * Decodes an {@link XdrString} from a base64-encoded XDR string. + * + * @param xdr the base64-encoded XDR string + * @return the decoded {@link XdrString} + * @throws IOException if the input is invalid or cannot be decoded + */ public static XdrString fromXdrBase64(String xdr) throws IOException { return fromXdrBase64(xdr, Integer.MAX_VALUE); } + /** + * Decodes an {@link XdrString} from raw XDR bytes. + * + * @param xdr the raw XDR bytes + * @param maxSize the maximum allowed string size in bytes + * @return the decoded {@link XdrString} + * @throws IOException if the input is invalid or cannot be decoded + */ public static XdrString fromXdrByteArray(byte[] xdr, int maxSize) throws IOException { ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(xdr); XdrDataInputStream xdrDataInputStream = new XdrDataInputStream(byteArrayInputStream); @@ -64,6 +126,13 @@ public static XdrString fromXdrByteArray(byte[] xdr, int maxSize) throws IOExcep return decode(xdrDataInputStream, maxSize); } + /** + * Decodes an {@link XdrString} from raw XDR bytes. + * + * @param xdr the raw XDR bytes + * @return the decoded {@link XdrString} + * @throws IOException if the input is invalid or cannot be decoded + */ public static XdrString fromXdrByteArray(byte[] xdr) throws IOException { ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(xdr); XdrDataInputStream xdrDataInputStream = new XdrDataInputStream(byteArrayInputStream); @@ -71,6 +140,11 @@ public static XdrString fromXdrByteArray(byte[] xdr) throws IOException { return decode(xdrDataInputStream, Integer.MAX_VALUE); } + /** + * Serializes this value to JSON. + * + * @return the JSON representation of this string + */ @Override public String toJson() { return XdrElement.gson.toJson(toJsonObject()); @@ -80,6 +154,12 @@ Object toJsonObject() { return XdrElement.bytesToEscapedAscii(this.bytes); } + /** + * Parses an {@link XdrString} from JSON. + * + * @param json the JSON representation + * @return the parsed {@link XdrString}, or {@code null} if the input is {@code null} + */ public static XdrString fromJson(String json) { return fromJsonObject(XdrElement.gson.fromJson(json, Object.class)); } @@ -94,6 +174,11 @@ static XdrString fromJsonObject(Object json) { return new XdrString(XdrElement.escapedAsciiToBytes((String) json)); } + /** + * Returns this value decoded as a UTF-8 string. + * + * @return the UTF-8 string representation + */ @Override public String toString() { return new String(bytes, StandardCharsets.UTF_8); diff --git a/src/main/java/org/stellar/sdk/xdr/XdrUnsignedHyperInteger.java b/src/main/java/org/stellar/sdk/xdr/XdrUnsignedHyperInteger.java index 12cd16599..5c4b5edca 100644 --- a/src/main/java/org/stellar/sdk/xdr/XdrUnsignedHyperInteger.java +++ b/src/main/java/org/stellar/sdk/xdr/XdrUnsignedHyperInteger.java @@ -14,10 +14,25 @@ */ @Value public class XdrUnsignedHyperInteger implements XdrElement { + /** Largest value representable by XDR unsigned hyper integer. */ public static final BigInteger MAX_VALUE = new BigInteger("18446744073709551615"); + + /** Smallest value representable by XDR unsigned hyper integer. */ public static final BigInteger MIN_VALUE = BigInteger.ZERO; + + /** + * Numeric value stored by this XDR unsigned hyper integer. + * + * @return the unsigned 64-bit value + */ BigInteger number; + /** + * Creates an {@link XdrUnsignedHyperInteger} from a {@link BigInteger}. + * + * @param number the unsigned 64-bit value + * @throws IllegalArgumentException if {@code number} is outside the valid range + */ public XdrUnsignedHyperInteger(BigInteger number) { if (number.compareTo(MIN_VALUE) < 0 || number.compareTo(MAX_VALUE) > 0) { throw new IllegalArgumentException("number must be between 0 and 2^64 - 1 inclusive"); @@ -25,6 +40,12 @@ public XdrUnsignedHyperInteger(BigInteger number) { this.number = number; } + /** + * Creates an {@link XdrUnsignedHyperInteger} from a non-negative {@link Long}. + * + * @param number the unsigned 64-bit value + * @throws IllegalArgumentException if {@code number} is negative + */ public XdrUnsignedHyperInteger(Long number) { if (number < 0) { throw new IllegalArgumentException( @@ -33,11 +54,25 @@ public XdrUnsignedHyperInteger(Long number) { this.number = BigInteger.valueOf(number); } + /** + * Encodes this value to XDR. + * + * @param stream the destination XDR output stream + * @throws IOException if an I/O error occurs while writing the value + */ @Override public void encode(XdrDataOutputStream stream) throws IOException { stream.write(getBytes()); } + /** + * Decodes an {@link XdrUnsignedHyperInteger} from the provided stream. + * + * @param stream the source XDR input stream + * @param maxDepth the maximum decoding depth, ignored for this leaf type + * @return the decoded {@link XdrUnsignedHyperInteger} + * @throws IOException if an I/O error occurs while reading the value + */ public static XdrUnsignedHyperInteger decode(XdrDataInputStream stream, int maxDepth) throws IOException { // maxDepth is intentionally not checked - XdrUnsignedHyperInteger is a leaf type with no @@ -48,6 +83,14 @@ public static XdrUnsignedHyperInteger decode(XdrDataInputStream stream, int maxD return new XdrUnsignedHyperInteger(uint64); } + /** + * Decodes an {@link XdrUnsignedHyperInteger} from the provided stream using the default maximum + * depth. + * + * @param stream the source XDR input stream + * @return the decoded {@link XdrUnsignedHyperInteger} + * @throws IOException if an I/O error occurs while reading the value + */ public static XdrUnsignedHyperInteger decode(XdrDataInputStream stream) throws IOException { return decode(stream, XdrDataInputStream.DEFAULT_MAX_DEPTH); } @@ -62,6 +105,11 @@ private byte[] getBytes() { return paddedBytes; } + /** + * Serializes this value to JSON. + * + * @return the JSON representation of this value + */ @Override public String toJson() { return XdrElement.gson.toJson(toJsonObject()); @@ -71,6 +119,14 @@ Object toJsonObject() { return this.number.toString(); } + /** + * Parses an {@link XdrUnsignedHyperInteger} from JSON. + * + * @param json the JSON representation + * @return the parsed {@link XdrUnsignedHyperInteger}, or {@code null} if the input is {@code + * null} + * @throws IllegalArgumentException if the JSON value is invalid + */ public static XdrUnsignedHyperInteger fromJson(String json) { return fromJsonObject(XdrElement.gson.fromJson(json, Object.class)); } @@ -82,11 +138,25 @@ static XdrUnsignedHyperInteger fromJsonObject(Object json) { return new XdrUnsignedHyperInteger(XdrElement.jsonToBigInteger(json)); } + /** + * Decodes an {@link XdrUnsignedHyperInteger} from a base64-encoded XDR string. + * + * @param xdr the base64-encoded XDR string + * @return the decoded {@link XdrUnsignedHyperInteger} + * @throws IOException if the input is invalid or cannot be decoded + */ public static XdrUnsignedHyperInteger fromXdrBase64(String xdr) throws IOException { byte[] bytes = Base64Factory.getInstance().decode(xdr); return fromXdrByteArray(bytes); } + /** + * Decodes an {@link XdrUnsignedHyperInteger} from raw XDR bytes. + * + * @param xdr the raw XDR bytes + * @return the decoded {@link XdrUnsignedHyperInteger} + * @throws IOException if the input is invalid or cannot be decoded + */ public static XdrUnsignedHyperInteger fromXdrByteArray(byte[] xdr) throws IOException { ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(xdr); XdrDataInputStream xdrDataInputStream = new XdrDataInputStream(byteArrayInputStream); diff --git a/src/main/java/org/stellar/sdk/xdr/XdrUnsignedInteger.java b/src/main/java/org/stellar/sdk/xdr/XdrUnsignedInteger.java index f95b82a3b..75e33bc9e 100644 --- a/src/main/java/org/stellar/sdk/xdr/XdrUnsignedInteger.java +++ b/src/main/java/org/stellar/sdk/xdr/XdrUnsignedInteger.java @@ -13,10 +13,25 @@ */ @Value public class XdrUnsignedInteger implements XdrElement { + /** Largest value representable by XDR unsigned integer. */ public static final long MAX_VALUE = (1L << 32) - 1; + + /** Smallest value representable by XDR unsigned integer. */ public static final long MIN_VALUE = 0; + + /** + * Numeric value stored by this XDR unsigned integer. + * + * @return the unsigned 32-bit value as a {@link Long} + */ Long number; + /** + * Creates an {@link XdrUnsignedInteger} from a {@link Long}. + * + * @param number the unsigned 32-bit value + * @throws IllegalArgumentException if {@code number} is outside the valid range + */ public XdrUnsignedInteger(Long number) { if (number < MIN_VALUE || number > MAX_VALUE) { throw new IllegalArgumentException("number must be between 0 and 2^32 - 1 inclusive"); @@ -24,6 +39,12 @@ public XdrUnsignedInteger(Long number) { this.number = number; } + /** + * Creates an {@link XdrUnsignedInteger} from a non-negative {@link Integer}. + * + * @param number the unsigned 32-bit value + * @throws IllegalArgumentException if {@code number} is negative + */ public XdrUnsignedInteger(Integer number) { if (number < 0) { throw new IllegalArgumentException( @@ -32,6 +53,14 @@ public XdrUnsignedInteger(Integer number) { this.number = number.longValue(); } + /** + * Decodes an {@link XdrUnsignedInteger} from the provided stream. + * + * @param stream the source XDR input stream + * @param maxDepth the maximum decoding depth, ignored for this leaf type + * @return the decoded {@link XdrUnsignedInteger} + * @throws IOException if an I/O error occurs while reading the value + */ public static XdrUnsignedInteger decode(XdrDataInputStream stream, int maxDepth) throws IOException { // maxDepth is intentionally not checked - XdrUnsignedInteger is a leaf type with no recursive @@ -41,15 +70,33 @@ public static XdrUnsignedInteger decode(XdrDataInputStream stream, int maxDepth) return new XdrUnsignedInteger(uint32Value); } + /** + * Decodes an {@link XdrUnsignedInteger} from the provided stream using the default maximum depth. + * + * @param stream the source XDR input stream + * @return the decoded {@link XdrUnsignedInteger} + * @throws IOException if an I/O error occurs while reading the value + */ public static XdrUnsignedInteger decode(XdrDataInputStream stream) throws IOException { return decode(stream, XdrDataInputStream.DEFAULT_MAX_DEPTH); } + /** + * Encodes this value to XDR. + * + * @param stream the destination XDR output stream + * @throws IOException if an I/O error occurs while writing the value + */ @Override public void encode(XdrDataOutputStream stream) throws IOException { stream.writeInt(number.intValue()); } + /** + * Serializes this value to JSON. + * + * @return the JSON representation of this value + */ @Override public String toJson() { return XdrElement.gson.toJson(toJsonObject()); @@ -59,6 +106,13 @@ Object toJsonObject() { return this.number; } + /** + * Parses an {@link XdrUnsignedInteger} from JSON. + * + * @param json the JSON representation + * @return the parsed {@link XdrUnsignedInteger}, or {@code null} if the input is {@code null} + * @throws IllegalArgumentException if the JSON value is invalid + */ public static XdrUnsignedInteger fromJson(String json) { return fromJsonObject(XdrElement.gson.fromJson(json, Object.class)); } @@ -70,11 +124,25 @@ static XdrUnsignedInteger fromJsonObject(Object json) { return new XdrUnsignedInteger(XdrElement.jsonToLong(json)); } + /** + * Decodes an {@link XdrUnsignedInteger} from a base64-encoded XDR string. + * + * @param xdr the base64-encoded XDR string + * @return the decoded {@link XdrUnsignedInteger} + * @throws IOException if the input is invalid or cannot be decoded + */ public static XdrUnsignedInteger fromXdrBase64(String xdr) throws IOException { byte[] bytes = Base64Factory.getInstance().decode(xdr); return fromXdrByteArray(bytes); } + /** + * Decodes an {@link XdrUnsignedInteger} from raw XDR bytes. + * + * @param xdr the raw XDR bytes + * @return the decoded {@link XdrUnsignedInteger} + * @throws IOException if the input is invalid or cannot be decoded + */ public static XdrUnsignedInteger fromXdrByteArray(byte[] xdr) throws IOException { ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(xdr); XdrDataInputStream xdrDataInputStream = new XdrDataInputStream(byteArrayInputStream); diff --git a/xdr/Stellar-ledger-entries.x b/xdr/Stellar-ledger-entries.x index b9a9a1688..348311c8b 100644 --- a/xdr/Stellar-ledger-entries.x +++ b/xdr/Stellar-ledger-entries.x @@ -664,7 +664,8 @@ enum EnvelopeType ENVELOPE_TYPE_OP_ID = 6, ENVELOPE_TYPE_POOL_REVOKE_OP_ID = 7, ENVELOPE_TYPE_CONTRACT_ID = 8, - ENVELOPE_TYPE_SOROBAN_AUTHORIZATION = 9 + ENVELOPE_TYPE_SOROBAN_AUTHORIZATION = 9, + ENVELOPE_TYPE_SOROBAN_AUTHORIZATION_WITH_ADDRESS = 10 }; enum BucketListType diff --git a/xdr/Stellar-transaction.x b/xdr/Stellar-transaction.x index c22f5b4a5..11cacd745 100644 --- a/xdr/Stellar-transaction.x +++ b/xdr/Stellar-transaction.x @@ -569,10 +569,25 @@ struct SorobanAddressCredentials SCVal signature; }; +struct SorobanDelegateSignature +{ + SCAddress address; + SCVal signature; + SorobanDelegateSignature nestedDelegates<>; +}; + +struct SorobanAddressCredentialsWithDelegates +{ + SorobanAddressCredentials addressCredentials; + SorobanDelegateSignature delegates<>; +}; + enum SorobanCredentialsType { SOROBAN_CREDENTIALS_SOURCE_ACCOUNT = 0, - SOROBAN_CREDENTIALS_ADDRESS = 1 + SOROBAN_CREDENTIALS_ADDRESS = 1, + SOROBAN_CREDENTIALS_ADDRESS_V2 = 2, + SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES = 3 }; union SorobanCredentials switch (SorobanCredentialsType type) @@ -581,6 +596,10 @@ case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; +case SOROBAN_CREDENTIALS_ADDRESS_V2: + SorobanAddressCredentials addressV2; +case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: + SorobanAddressCredentialsWithDelegates addressWithDelegates; }; /* Unit of authorization data for Soroban. @@ -731,6 +750,15 @@ case ENVELOPE_TYPE_SOROBAN_AUTHORIZATION: uint32 signatureExpirationLedger; SorobanAuthorizedInvocation invocation; } sorobanAuthorization; +case ENVELOPE_TYPE_SOROBAN_AUTHORIZATION_WITH_ADDRESS: + struct + { + Hash networkID; + int64 nonce; + uint32 signatureExpirationLedger; + SCAddress address; + SorobanAuthorizedInvocation invocation; + } sorobanAuthorizationWithAddress; }; enum MemoType diff --git a/xdr/Stellar-types.x b/xdr/Stellar-types.x index f383d2e41..4b5914e44 100644 --- a/xdr/Stellar-types.x +++ b/xdr/Stellar-types.x @@ -149,4 +149,5 @@ union ClaimableBalanceID switch (ClaimableBalanceIDType type) case CLAIMABLE_BALANCE_ID_TYPE_V0: Hash v0; }; + } \ No newline at end of file