Skip to content

Update XDR definitions for protocol-26 - #5919

Merged
tamirms merged 1 commit into
stellar:protocol-nextfrom
tamirms:update-xdr-cff714a
Mar 13, 2026
Merged

tamirms merged 1 commit into
stellar:protocol-nextfrom
tamirms:update-xdr-cff714a

Conversation

@tamirms

@tamirms tamirms commented Mar 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Update XDR definitions from stellar/stellar-xdr to latest commit cff714a5ebaaaf2dac343b3546c2df73f0b7a36e which has support for protocol-26

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings March 13, 2026 22:42
@tamirms tamirms changed the title Update XDR definitions to cff714a5 Update XDR definitions for protocol-26 Mar 13, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates this repo’s Stellar XDR schema and regenerated Go bindings to match stellar/stellar-xdr@cff714a5, including newly introduced result codes and config-setting types.

Changes:

  • Updated XDR source files (Stellar-transaction.x, Stellar-contract-config-setting.x) to add new enum values and new config-setting structs/typedefs.
  • Regenerated Go XDR bindings in both xdr/ and gxdr/ to reflect the updated schema.
  • Bumped the recorded upstream XDR commit in xdr/xdr_commit_generated.txt and Makefile.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
xdr/xdr_generated.go Regenerated canonical Go XDR types; adds new result codes and new config-setting arms/types (e.g., frozen ledger keys / bypass txs).
gxdr/xdr_generated.go Regenerated “gxdr” bindings mirroring the schema updates (new enums/arms/types).
xdr/xdr_commit_generated.txt Updates recorded upstream XDR commit hash to cff714a5….
xdr/Stellar-transaction.x Adds new transaction/liquidity/claim result codes (e.g., TRUSTLINE_FROZEN, FROZEN_KEY_ACCESSED).
xdr/Stellar-contract-config-setting.x Adds EncodedLedgerKey typedef and new frozen/bypass config-setting structs and IDs.
Makefile Updates XDR_COMMIT to cff714a5… for regeneration provenance.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread xdr/xdr_generated.go
}

// MustFrozenLedgerKeys retrieves the FrozenLedgerKeys value from the union,
// panicing if the value is not set.
Comment thread xdr/xdr_generated.go
}

// MustFrozenLedgerKeysDelta retrieves the FrozenLedgerKeysDelta value from the union,
// panicing if the value is not set.
Comment thread xdr/xdr_generated.go
}

// MustFreezeBypassTxs retrieves the FreezeBypassTxs value from the union,
// panicing if the value is not set.
Comment thread xdr/xdr_generated.go
}

// MustFreezeBypassTxsDelta retrieves the FreezeBypassTxsDelta value from the union,
// panicing if the value is not set.
Comment thread xdr/Stellar-transaction.x
LIQUIDITY_POOL_DEPOSIT_BAD_PRICE = -6, // deposit price outside bounds
LIQUIDITY_POOL_DEPOSIT_POOL_FULL = -7 // pool reserves are full
LIQUIDITY_POOL_DEPOSIT_POOL_FULL = -7, // pool reserves are full
LIQUIDITY_POOL_DEPOSIT_TRUSTLINE_FROZEN = -8 // trustline for one of the
Comment thread xdr/Stellar-transaction.x
// of the assets
LIQUIDITY_POOL_WITHDRAW_UNDER_MINIMUM = -5 // didn't withdraw enough
LIQUIDITY_POOL_WITHDRAW_UNDER_MINIMUM = -5, // didn't withdraw enough
LIQUIDITY_POOL_WITHDRAW_TRUSTLINE_FROZEN = -6 // trustline for one of the
@tamirms
tamirms requested a review from a team March 13, 2026 22:51
@tamirms
tamirms changed the base branch from main to protocol-next March 13, 2026 23:16
@tamirms
tamirms merged commit 933f276 into stellar:protocol-next Mar 13, 2026
15 checks passed
@tamirms
tamirms deleted the update-xdr-cff714a branch March 13, 2026 23:27
urvisavla added a commit that referenced this pull request Apr 1, 2026
* Update XDR definitions to cff714a5ebaaaf2dac343b3546c2df73f0b7a36e (#5919)

* Bump default resource limits in NewPaymentToContract for protocol 26 (#5921)

---------

Co-authored-by: tamirms <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants