Skip to content

Update XDR definitions from upstream stellar-xdr #89

@github-actions

Description

@github-actions

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

Upstream commit: 0e4b099

Changed files

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

Diffs

Stellar-ledger-entries.x
--- local/Stellar-ledger-entries.x
+++ upstream/Stellar-ledger-entries.x
@@ -664,7 +664,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
 };
 
 enum BucketListType
Stellar-transaction.x
--- local/Stellar-transaction.x
+++ upstream/Stellar-transaction.x
@@ -569,11 +569,25 @@
     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 @@
     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 @@
         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 the repo-root Makefile to the upstream commit shown above
  2. Run make xdr-update to re-download .x files and regenerate the PHP XDR types
  3. Run composer test and fix any test failures
  4. If the XDR changes introduce new types or extend existing ones (e.g. new operations, transaction fields, or protocol features), evaluate whether the SDK needs new or updated high-level APIs to support them (e.g. operation builders, TxRep, SEP implementations)
  5. Update the changelog and release notes with any breaking changes or new features

See the XDR generator README for detailed instructions.


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