Skip to content

Commit 6e60566

Browse files
tamirmsclaude
andcommitted
Update XDR definitions to cff714a5ebaaaf2dac343b3546c2df73f0b7a36e
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 580bf40 commit 6e60566

File tree

6 files changed

+1352
-143
lines changed

6 files changed

+1352
-143
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ xdr/Stellar-exporter.x
1717

1818

1919
XDRGEN_COMMIT=b423e1da9504239fb3136cbcc5f9beeb37795837
20-
XDR_COMMIT=0a621ec7811db000a60efae5b35f78dee3aa2533
20+
XDR_COMMIT=cff714a5ebaaaf2dac343b3546c2df73f0b7a36e
2121

2222
.PHONY: xdr xdr-clean xdr-update
2323

gxdr/xdr_generated.go

Lines changed: 451 additions & 107 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

xdr/Stellar-contract-config-setting.x

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
%#include "xdr/Stellar-types.h"
22

33
namespace stellar {
4+
5+
typedef opaque EncodedLedgerKey<>;
6+
47
// General “Soroban execution lane” settings
58
struct ConfigSettingContractExecutionLanesV0
69
{
@@ -291,7 +294,9 @@ enum ContractCostType {
291294
// Cost of performing BN254 scalar element exponentiation
292295
Bn254FrPow = 83,
293296
// Cost of performing BN254 scalar element inversion
294-
Bn254FrInv = 84
297+
Bn254FrInv = 84,
298+
// Cost of performing BN254 G1 multi-scalar multiplication (MSM)
299+
Bn254G1Msm = 85
295300
};
296301

297302
struct ContractCostParamEntry {
@@ -341,6 +346,24 @@ struct ConfigSettingSCPTiming {
341346
uint32 ballotTimeoutIncrementMilliseconds;
342347
};
343348

349+
struct FrozenLedgerKeys {
350+
EncodedLedgerKey keys<>;
351+
};
352+
353+
struct FrozenLedgerKeysDelta {
354+
EncodedLedgerKey keysToFreeze<>;
355+
EncodedLedgerKey keysToUnfreeze<>;
356+
};
357+
358+
struct FreezeBypassTxs {
359+
Hash txHashes<>;
360+
};
361+
362+
struct FreezeBypassTxsDelta {
363+
Hash addTxs<>;
364+
Hash removeTxs<>;
365+
};
366+
344367
// limits the ContractCostParams size to 20kB
345368
const CONTRACT_COST_COUNT_LIMIT = 1024;
346369

@@ -365,7 +388,11 @@ enum ConfigSettingID
365388
CONFIG_SETTING_EVICTION_ITERATOR = 13,
366389
CONFIG_SETTING_CONTRACT_PARALLEL_COMPUTE_V0 = 14,
367390
CONFIG_SETTING_CONTRACT_LEDGER_COST_EXT_V0 = 15,
368-
CONFIG_SETTING_SCP_TIMING = 16
391+
CONFIG_SETTING_SCP_TIMING = 16,
392+
CONFIG_SETTING_FROZEN_LEDGER_KEYS = 17,
393+
CONFIG_SETTING_FROZEN_LEDGER_KEYS_DELTA = 18,
394+
CONFIG_SETTING_FREEZE_BYPASS_TXS = 19,
395+
CONFIG_SETTING_FREEZE_BYPASS_TXS_DELTA = 20
369396
};
370397

371398
union ConfigSettingEntry switch (ConfigSettingID configSettingID)
@@ -404,5 +431,13 @@ case CONFIG_SETTING_CONTRACT_LEDGER_COST_EXT_V0:
404431
ConfigSettingContractLedgerCostExtV0 contractLedgerCostExt;
405432
case CONFIG_SETTING_SCP_TIMING:
406433
ConfigSettingSCPTiming contractSCPTiming;
434+
case CONFIG_SETTING_FROZEN_LEDGER_KEYS:
435+
FrozenLedgerKeys frozenLedgerKeys;
436+
case CONFIG_SETTING_FROZEN_LEDGER_KEYS_DELTA:
437+
FrozenLedgerKeysDelta frozenLedgerKeysDelta;
438+
case CONFIG_SETTING_FREEZE_BYPASS_TXS:
439+
FreezeBypassTxs freezeBypassTxs;
440+
case CONFIG_SETTING_FREEZE_BYPASS_TXS_DELTA:
441+
FreezeBypassTxsDelta freezeBypassTxsDelta;
407442
};
408443
}

xdr/Stellar-transaction.x

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1597,7 +1597,8 @@ enum ClaimClaimableBalanceResultCode
15971597
CLAIM_CLAIMABLE_BALANCE_CANNOT_CLAIM = -2,
15981598
CLAIM_CLAIMABLE_BALANCE_LINE_FULL = -3,
15991599
CLAIM_CLAIMABLE_BALANCE_NO_TRUST = -4,
1600-
CLAIM_CLAIMABLE_BALANCE_NOT_AUTHORIZED = -5
1600+
CLAIM_CLAIMABLE_BALANCE_NOT_AUTHORIZED = -5,
1601+
CLAIM_CLAIMABLE_BALANCE_TRUSTLINE_FROZEN = -6
16011602
};
16021603

16031604
union ClaimClaimableBalanceResult switch (ClaimClaimableBalanceResultCode code)
@@ -1609,6 +1610,7 @@ case CLAIM_CLAIMABLE_BALANCE_CANNOT_CLAIM:
16091610
case CLAIM_CLAIMABLE_BALANCE_LINE_FULL:
16101611
case CLAIM_CLAIMABLE_BALANCE_NO_TRUST:
16111612
case CLAIM_CLAIMABLE_BALANCE_NOT_AUTHORIZED:
1613+
case CLAIM_CLAIMABLE_BALANCE_TRUSTLINE_FROZEN:
16121614
void;
16131615
};
16141616

@@ -1778,7 +1780,9 @@ enum LiquidityPoolDepositResultCode
17781780
LIQUIDITY_POOL_DEPOSIT_LINE_FULL = -5, // pool share trust line doesn't
17791781
// have sufficient limit
17801782
LIQUIDITY_POOL_DEPOSIT_BAD_PRICE = -6, // deposit price outside bounds
1781-
LIQUIDITY_POOL_DEPOSIT_POOL_FULL = -7 // pool reserves are full
1783+
LIQUIDITY_POOL_DEPOSIT_POOL_FULL = -7, // pool reserves are full
1784+
LIQUIDITY_POOL_DEPOSIT_TRUSTLINE_FROZEN = -8 // trustline for one of the
1785+
// assets is frozen
17821786
};
17831787

17841788
union LiquidityPoolDepositResult switch (LiquidityPoolDepositResultCode code)
@@ -1792,6 +1796,7 @@ case LIQUIDITY_POOL_DEPOSIT_UNDERFUNDED:
17921796
case LIQUIDITY_POOL_DEPOSIT_LINE_FULL:
17931797
case LIQUIDITY_POOL_DEPOSIT_BAD_PRICE:
17941798
case LIQUIDITY_POOL_DEPOSIT_POOL_FULL:
1799+
case LIQUIDITY_POOL_DEPOSIT_TRUSTLINE_FROZEN:
17951800
void;
17961801
};
17971802

@@ -1810,7 +1815,9 @@ enum LiquidityPoolWithdrawResultCode
18101815
// pool share
18111816
LIQUIDITY_POOL_WITHDRAW_LINE_FULL = -4, // would go above limit for one
18121817
// of the assets
1813-
LIQUIDITY_POOL_WITHDRAW_UNDER_MINIMUM = -5 // didn't withdraw enough
1818+
LIQUIDITY_POOL_WITHDRAW_UNDER_MINIMUM = -5, // didn't withdraw enough
1819+
LIQUIDITY_POOL_WITHDRAW_TRUSTLINE_FROZEN = -6 // trustline for one of the
1820+
// assets is frozen
18141821
};
18151822

18161823
union LiquidityPoolWithdrawResult switch (LiquidityPoolWithdrawResultCode code)
@@ -1822,6 +1829,7 @@ case LIQUIDITY_POOL_WITHDRAW_NO_TRUST:
18221829
case LIQUIDITY_POOL_WITHDRAW_UNDERFUNDED:
18231830
case LIQUIDITY_POOL_WITHDRAW_LINE_FULL:
18241831
case LIQUIDITY_POOL_WITHDRAW_UNDER_MINIMUM:
1832+
case LIQUIDITY_POOL_WITHDRAW_TRUSTLINE_FROZEN:
18251833
void;
18261834
};
18271835

@@ -1999,7 +2007,8 @@ enum TransactionResultCode
19992007
txBAD_SPONSORSHIP = -14, // sponsorship not confirmed
20002008
txBAD_MIN_SEQ_AGE_OR_GAP = -15, // minSeqAge or minSeqLedgerGap conditions not met
20012009
txMALFORMED = -16, // precondition is invalid
2002-
txSOROBAN_INVALID = -17 // soroban-specific preconditions were not met
2010+
txSOROBAN_INVALID = -17, // soroban-specific preconditions were not met
2011+
txFROZEN_KEY_ACCESSED = -18 // a 'frozen' ledger key is accessed by any operation
20032012
};
20042013

20052014
// InnerTransactionResult must be binary compatible with TransactionResult
@@ -2031,6 +2040,7 @@ struct InnerTransactionResult
20312040
case txBAD_MIN_SEQ_AGE_OR_GAP:
20322041
case txMALFORMED:
20332042
case txSOROBAN_INVALID:
2043+
case txFROZEN_KEY_ACCESSED:
20342044
void;
20352045
}
20362046
result;
@@ -2078,6 +2088,7 @@ struct TransactionResult
20782088
case txBAD_MIN_SEQ_AGE_OR_GAP:
20792089
case txMALFORMED:
20802090
case txSOROBAN_INVALID:
2091+
case txFROZEN_KEY_ACCESSED:
20812092
void;
20822093
}
20832094
result;

xdr/xdr_commit_generated.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0a621ec7811db000a60efae5b35f78dee3aa2533
1+
cff714a5ebaaaf2dac343b3546c2df73f0b7a36e

0 commit comments

Comments
 (0)