Skip to content

Update XDR definitions from upstream stellar-xdr (0e4b099) #33

@github-actions

Description

@github-actions

The upstream stellar/stellar-xdr curr branch has changes that are not yet reflected in this SDK.

Pinned commit: 0a56f5b
Latest upstream: 0e4b099
Commits behind: 1
Compare: 0a56f5b...0e4b099

Changed .x files

  • Stellar-ledger-entries.x: +2 / -1 lines
  • Stellar-transaction.x: +28 / -1 lines

Diffs

Stellar-ledger-entries.x
diff --git a/Stellar-ledger-entries.x b/Stellar-ledger-entries.x
index b9a9a16..348311c 100644
--- a/Stellar-ledger-entries.x
+++ b/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
Stellar-transaction.x
diff --git a/Stellar-transaction.x b/Stellar-transaction.x
index adce33d..11cacd7 100644
--- a/Stellar-transaction.x
+++ b/Stellar-transaction.x
@@ -569,11 +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)
@@ -582,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.
@@ -732,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

Required actions

  1. Update XDR_COMMIT in tools/xdrgen-kt/xdr-source.cfg to 0e4b09985791e4b0e3f4cb04783e0873f4b3e101
  2. If new .x files were added upstream, add them to XDR_FILES in xdr-source.cfg
  3. Run make -C tools/xdrgen-kt clean-all generate to re-download and regenerate Kotlin XDR types
  4. Run make -C tools/xdrgen-kt test to verify snapshot tests pass (update snapshots if needed)
  5. Build and run unit tests: ./gradlew :stellar-sdk:jvmTest -PexcludeIntegrationTests
  6. If the XDR changes introduce new types or modify existing ones, evaluate whether the SDK needs updated high-level APIs (operation builders, SEP implementations, etc.)
  7. Update the changelog with any breaking changes or new features

This issue was created automatically by the XDR update check workflow.

Metadata

Metadata

Labels

xdr-updateUpstream XDR definition changes detected

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions