Package org.stellar.sdk.xdr
Class LedgerCloseMetaV2
java.lang.Object
org.stellar.sdk.xdr.LedgerCloseMetaV2
- All Implemented Interfaces:
XdrElement
LedgerCloseMetaV2's original definition in the XDR file is:
struct LedgerCloseMetaV2
{
LedgerCloseMetaExt ext;
LedgerHeaderHistoryEntry ledgerHeader;
GeneralizedTransactionSet txSet;
// NB: transactions are sorted in apply order here
// fees for all transactions are processed first
// followed by applying transactions
TransactionResultMetaV1 txProcessing<>;
// upgrades are applied last
UpgradeEntryMeta upgradesProcessing<>;
// other misc information attached to the ledger close
SCPHistoryEntry scpInfo<>;
// Size in bytes of live Soroban state, to support downstream
// systems calculating storage fees correctly.
uint64 totalByteSizeOfLiveSorobanState;
// TTL and data/code keys that have been evicted at this ledger.
LedgerKey evictedKeys<>;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionLedgerCloseMetaV2(LedgerCloseMetaExt ext, LedgerHeaderHistoryEntry ledgerHeader, GeneralizedTransactionSet txSet, TransactionResultMetaV1[] txProcessing, UpgradeEntryMeta[] upgradesProcessing, SCPHistoryEntry[] scpInfo, Uint64 totalByteSizeOfLiveSorobanState, LedgerKey[] evictedKeys) Creates a newLedgerCloseMetaV2instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static LedgerCloseMetaV2decode(XdrDataInputStream stream) static LedgerCloseMetaV2decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic LedgerCloseMetaV2static LedgerCloseMetaV2fromXdrBase64(String xdr) static LedgerCloseMetaV2fromXdrByteArray(byte[] xdr) Value of theevictedKeysfield.getExt()Value of theextfield.Value of theledgerHeaderfield.Value of thescpInfofield.Value of thetotalByteSizeOfLiveSorobanStatefield.Value of thetxProcessingfield.getTxSet()Value of thetxSetfield.Value of theupgradesProcessingfield.inthashCode()voidsetEvictedKeys(LedgerKey[] evictedKeys) Value of theevictedKeysfield.voidsetExt(LedgerCloseMetaExt ext) Value of theextfield.voidsetLedgerHeader(LedgerHeaderHistoryEntry ledgerHeader) Value of theledgerHeaderfield.voidsetScpInfo(SCPHistoryEntry[] scpInfo) Value of thescpInfofield.voidsetTotalByteSizeOfLiveSorobanState(Uint64 totalByteSizeOfLiveSorobanState) Value of thetotalByteSizeOfLiveSorobanStatefield.voidsetTxProcessing(TransactionResultMetaV1[] txProcessing) Value of thetxProcessingfield.voidValue of thetxSetfield.voidsetUpgradesProcessing(UpgradeEntryMeta[] upgradesProcessing) Value of theupgradesProcessingfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
LedgerCloseMetaV2
public LedgerCloseMetaV2() -
LedgerCloseMetaV2
public LedgerCloseMetaV2(LedgerCloseMetaExt ext, LedgerHeaderHistoryEntry ledgerHeader, GeneralizedTransactionSet txSet, TransactionResultMetaV1[] txProcessing, UpgradeEntryMeta[] upgradesProcessing, SCPHistoryEntry[] scpInfo, Uint64 totalByteSizeOfLiveSorobanState, LedgerKey[] evictedKeys) Creates a newLedgerCloseMetaV2instance.- Parameters:
ext- theextfield valueledgerHeader- theledgerHeaderfield valuetxSet- thetxSetfield valuetxProcessing- thetxProcessingfield valueupgradesProcessing- theupgradesProcessingfield valuescpInfo- thescpInfofield valuetotalByteSizeOfLiveSorobanState- thetotalByteSizeOfLiveSorobanStatefield valueevictedKeys- theevictedKeysfield value
-
-
Method Details
-
encode
Description copied from interface:XdrElementEncodes this value to XDR and writes it to the provided stream.- Specified by:
encodein interfaceXdrElement- Parameters:
stream- the destination XDR output stream- Throws:
IOException- if an I/O error occurs while writing the value
-
decode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toJson
Description copied from interface:XdrElementSerializes this value to JSON.- Specified by:
toJsonin interfaceXdrElement- Returns:
- the JSON representation of this value
-
fromJson
-
builder
-
toBuilder
-
getExt
Value of theextfield.- Returns:
- the
extfield value
-
getLedgerHeader
Value of theledgerHeaderfield.- Returns:
- the
ledgerHeaderfield value
-
getTxSet
Value of thetxSetfield.- Returns:
- the
txSetfield value
-
getTxProcessing
Value of thetxProcessingfield.- Returns:
- the
txProcessingfield value
-
getUpgradesProcessing
Value of theupgradesProcessingfield.- Returns:
- the
upgradesProcessingfield value
-
getScpInfo
Value of thescpInfofield.- Returns:
- the
scpInfofield value
-
getTotalByteSizeOfLiveSorobanState
Value of thetotalByteSizeOfLiveSorobanStatefield.- Returns:
- the
totalByteSizeOfLiveSorobanStatefield value
-
getEvictedKeys
Value of theevictedKeysfield.- Returns:
- the
evictedKeysfield value
-
setExt
Value of theextfield.- Parameters:
ext- theextfield value
-
setLedgerHeader
Value of theledgerHeaderfield.- Parameters:
ledgerHeader- theledgerHeaderfield value
-
setTxSet
Value of thetxSetfield.- Parameters:
txSet- thetxSetfield value
-
setTxProcessing
Value of thetxProcessingfield.- Parameters:
txProcessing- thetxProcessingfield value
-
setUpgradesProcessing
Value of theupgradesProcessingfield.- Parameters:
upgradesProcessing- theupgradesProcessingfield value
-
setScpInfo
Value of thescpInfofield.- Parameters:
scpInfo- thescpInfofield value
-
setTotalByteSizeOfLiveSorobanState
Value of thetotalByteSizeOfLiveSorobanStatefield.- Parameters:
totalByteSizeOfLiveSorobanState- thetotalByteSizeOfLiveSorobanStatefield value
-
setEvictedKeys
Value of theevictedKeysfield.- Parameters:
evictedKeys- theevictedKeysfield value
-
equals
-
hashCode
public int hashCode() -
toString
-