Protocol 23 release candidate 1
Pre-release
Pre-release
·
213 commits
to master
since this release
This is the first release candidate for the Stellar Protocol 23 support. See #171
Horizon updates:
- remove deprecated fields
numArchivedContractsandarchivedContractsAmountfromAssetResponse - add new field
destinationMuxedIdtoAssetBalanceChange - remove deprecated field
errorResultXdrfromSubmitTransactionAsyncResponse
Soroban rpc:
- add new
authModefield toSimulateTransactionRequest - extend
GetTransactionResponseandGetTransactionsResponseto support the new fieldevents(TransactionEvents) holding the diagnostic, transaction and contract events. - add the new
extfield toLedgerEntryfromgetLedgerEntries(...) - extend testing for parsing the different kinds of events returned in
GetTransactionResponseandGetTransactionsResponse
StrKey (String+KeyUtils & Data+KeyUtils):
- add support for
StrKeyclaimable balance ids ("B...") - add support for
StrKeyliquidity pool ids ("L...") - accept
StrKeyclaimable balance ids ("B...") in:ClaimClaimableBalanceOperation.init,ClawbackClaimableBalanceOperation.init,ClaimableBalancesService.getClaimableBalance,OperationsService.getOperations(forClaimableBalance,...),TransactionsService.getTransactions(forClaimableBalance,...)RevokeSponsorshipOperation.revokeClaimableBalanceSponsorshipLedgerKey,ClaimableBalanceIDXDR.init,SCAddressXDR.initandTxRep - accept
StrKeyliquidity pool ids ("L...") inLiquidityPoolDepositOperation.init,LiquidityPoolWithdrawOperation.init,LiquidityPoolsService.getLiquidityPool,OperationsService.getOperations(forLiquidityPool,...),TransactionsService.getTransactions(forLiquidityPool,...),AccountService.getAccounts,EffectsService.getEffects,SCAddressXDR.init,LiquidityPoolDepositOpXDR.init,LiquidityPoolWithdrawOpXDR.initandTxRep - update
VersionBytecase names. - add a new
StrKeytest case (StrKeyTest). - extend
AmmandOperationstest cases for the newStrKeyclaimable balance ids and liquidity pool ids
XDR changes:
- extend
SCAddressXDRto support muxed accounts, claimable balance ids and liquidity pool ids - extend
SCSpecTypeto support muxed account addresses TransactionMetaXDR: add transaction meta v4 support toTransactionMetaXDR, addTransactionMetaV4XDR,OperationMetaV2XDRandTransactionEventXDR- extend
ContractCostTypeto support the new cost types ContractSpecXDR: add support for spec events (SCSpecEventV0XDR). AddSCSpecEventV0XDR,SCSpecEventParamV0XDR,SCSpecEventDataFormatandSCSpecEventParamLocationV0SorobanResourcesExt: add support for indices representing what Soroban entries in the footprint are archived (new caseressourceExtholding newSorobanResourcesExtV0)- add
restoredcase toLedgerEntryChangeXDR ConfigSettingContractLedgerCostV0XDR: renametxMaxReadLedgerEntriestotxMaxDiskReadEntries,ledgerMaxDiskReadBytestotxMaxDiskReadBytes,feeReadLedgerEntrytofeeDiskReadLedgerEntry,feeRead1KBtofeeDiskRead1KB,bucketListTargetSizeBytestosorobanStateTargetSizeBytes,writeFee1KBBucketListLowtorentFee1KBSorobanStateSizeLow,writeFee1KBBucketListHightorentFee1KBSorobanStateSizeHigh,bucketListWriteFeeGrowthFactortosorobanStateRentFeeGrowthFactor- extend
ConfigSettingEntryXDRwith new cases forcontractParallelCompute,contractLedgerCostExtandcontractSCPTiming - rename
bucketListSizeWindowcase inConfigSettingEntryXDRtoliveSorobanStateSizeWindow - add
ConfigSettingContractParallelComputeV0,ConfigSettingContractLedgerCostExtV0andConfigSettingSCPTiming StateArchivalSettingsXDR: renamebucketListSizeWindowSampleSizetoliveSorobanStateSizeWindowSampleSizeandbucketListWindowSamplePeriodtoliveSorobanStateSizeWindowSamplePeriodConfigSettingID: add new cases forcontractParallelComputeV0,contractLedgerCostExtV0andscpTiming, renamebucketListSizeWindowcase toliveSorobanStateSizeWindow
SEP-11 (TxRep):
- update
TxRepto support new address types for muxed accounts, claimable balances and liquidity pools. - accept new
StrKeyclaimable balance ids ("B...") - accept new
StrKeyliquidity pool ids ("L...") - rename
readBytestodiskReadBytesforSorobanResourcesXDR.TxRepcan still read the old version (readBytes) but writesdiskReadBytesnow. - rename
CONFIG_SETTING_BUCKETLIST_SIZE_WINDOWtoCONFIG_SETTING_LIVE_SOROBAN_STATE_SIZE_WINDOW
forConfigSettingID. TxRep can still read the old value (CONFIG_SETTING_BUCKETLIST_SIZE_WINDOW) but writesCONFIG_SETTING_LIVE_SOROBAN_STATE_SIZE_WINDOWnow. - add support for
SorobanResourcesExtextension holding indices representing what Soroban entries in the footprint are archived.
Other improvements:
- remove deprecated initializers that use
KeyPairfor:PaymentOperation,PathPaymentOperation,PathPaymentStrictReceiveOperation,PathPaymentStrictSendOperation,PathPaymentStrictSendOperation,ManageOfferOperation,ManageDataOperation,ManageBuyOfferOperation,ManageSellOfferOperation,CreatePassiveOfferOperation,CreateAccountOperation,BumpSequenceOperation,AllowTrustOperation,AccountMergeOperation,SetOptionsOperation,Operation. Please use the initializers accepting account ids instead. - SEP-01:
TokenandPathobjects are now hashable - SEP-02: Improve federation test
- SEP-10: update web auth test case for new testanchor signing key
- extend
SimulateTransactionResponseby addingneedsRestoreFootprint(trueif the simulation detected expired ledger entries which requires restoring) - improve soroban test cases
- overall code improvements: handle warnings & deprecations from other libs, update comments