Package org.stellar.sdk.xdr
Class LedgerCloseMetaV1
java.lang.Object
org.stellar.sdk.xdr.LedgerCloseMetaV1
- All Implemented Interfaces:
XdrElement
LedgerCloseMetaV1's original definition in the XDR file is:
struct LedgerCloseMetaV1
{
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
TransactionResultMeta 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<>;
// Maintained for backwards compatibility, should never be populated.
LedgerEntry unused<>;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionLedgerCloseMetaV1(LedgerCloseMetaExt ext, LedgerHeaderHistoryEntry ledgerHeader, GeneralizedTransactionSet txSet, TransactionResultMeta[] txProcessing, UpgradeEntryMeta[] upgradesProcessing, SCPHistoryEntry[] scpInfo, Uint64 totalByteSizeOfLiveSorobanState, LedgerKey[] evictedKeys, LedgerEntry[] unused) Creates a newLedgerCloseMetaV1instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static LedgerCloseMetaV1decode(XdrDataInputStream stream) static LedgerCloseMetaV1decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic LedgerCloseMetaV1static LedgerCloseMetaV1fromXdrBase64(String xdr) static LedgerCloseMetaV1fromXdrByteArray(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 theunusedfield.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(TransactionResultMeta[] txProcessing) Value of thetxProcessingfield.voidValue of thetxSetfield.voidsetUnused(LedgerEntry[] unused) Value of theunusedfield.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
-
LedgerCloseMetaV1
public LedgerCloseMetaV1() -
LedgerCloseMetaV1
public LedgerCloseMetaV1(LedgerCloseMetaExt ext, LedgerHeaderHistoryEntry ledgerHeader, GeneralizedTransactionSet txSet, TransactionResultMeta[] txProcessing, UpgradeEntryMeta[] upgradesProcessing, SCPHistoryEntry[] scpInfo, Uint64 totalByteSizeOfLiveSorobanState, LedgerKey[] evictedKeys, LedgerEntry[] unused) Creates a newLedgerCloseMetaV1instance.- Parameters:
ext- theextfield valueledgerHeader- theledgerHeaderfield valuetxSet- thetxSetfield valuetxProcessing- thetxProcessingfield valueupgradesProcessing- theupgradesProcessingfield valuescpInfo- thescpInfofield valuetotalByteSizeOfLiveSorobanState- thetotalByteSizeOfLiveSorobanStatefield valueevictedKeys- theevictedKeysfield valueunused- theunusedfield 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
-
getUnused
Value of theunusedfield.- Returns:
- the
unusedfield 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
-
setUnused
Value of theunusedfield.- Parameters:
unused- theunusedfield value
-
equals
-
hashCode
public int hashCode() -
toString
-