Package org.stellar.sdk.xdr
Class LedgerUpgrade
java.lang.Object
org.stellar.sdk.xdr.LedgerUpgrade
LedgerUpgrade's original definition in the XDR file is:
union LedgerUpgrade switch (LedgerUpgradeType type)
{
case LEDGER_UPGRADE_VERSION:
uint32 newLedgerVersion; // update ledgerVersion
case LEDGER_UPGRADE_BASE_FEE:
uint32 newBaseFee; // update baseFee
case LEDGER_UPGRADE_MAX_TX_SET_SIZE:
uint32 newMaxTxSetSize; // update maxTxSetSize
case LEDGER_UPGRADE_BASE_RESERVE:
uint32 newBaseReserve; // update baseReserve
case LEDGER_UPGRADE_FLAGS:
uint32 newFlags; // update flags
case LEDGER_UPGRADE_CONFIG:
// Update arbitrary `ConfigSetting` entries identified by the key.
ConfigUpgradeSetKey newConfig;
case LEDGER_UPGRADE_MAX_SOROBAN_TX_SET_SIZE:
// Update ConfigSettingContractExecutionLanesV0.ledgerMaxTxCount without
// using `LEDGER_UPGRADE_CONFIG`.
uint32 newMaxSorobanTxSetSize;
};
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionLedgerUpgrade(LedgerUpgradeType discriminant, Uint32 newLedgerVersion, Uint32 newBaseFee, Uint32 newMaxTxSetSize, Uint32 newBaseReserve, Uint32 newFlags, ConfigUpgradeSetKey newConfig, Uint32 newMaxSorobanTxSetSize) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static LedgerUpgradedecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic LedgerUpgradefromXdrBase64(String xdr) static LedgerUpgradefromXdrByteArray(byte[] xdr) inthashCode()voidsetDiscriminant(LedgerUpgradeType discriminant) voidsetNewBaseFee(Uint32 newBaseFee) voidsetNewBaseReserve(Uint32 newBaseReserve) voidsetNewConfig(ConfigUpgradeSetKey newConfig) voidsetNewFlags(Uint32 newFlags) voidsetNewLedgerVersion(Uint32 newLedgerVersion) voidsetNewMaxSorobanTxSetSize(Uint32 newMaxSorobanTxSetSize) voidsetNewMaxTxSetSize(Uint32 newMaxTxSetSize) toString()default Stringdefault byte[]
-
Constructor Details
-
LedgerUpgrade
public LedgerUpgrade() -
LedgerUpgrade
public LedgerUpgrade(LedgerUpgradeType discriminant, Uint32 newLedgerVersion, Uint32 newBaseFee, Uint32 newMaxTxSetSize, Uint32 newBaseReserve, Uint32 newFlags, ConfigUpgradeSetKey newConfig, Uint32 newMaxSorobanTxSetSize)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getNewLedgerVersion
-
getNewBaseFee
-
getNewMaxTxSetSize
-
getNewBaseReserve
-
getNewFlags
-
getNewConfig
-
getNewMaxSorobanTxSetSize
-
setDiscriminant
-
setNewLedgerVersion
-
setNewBaseFee
-
setNewMaxTxSetSize
-
setNewBaseReserve
-
setNewFlags
-
setNewConfig
-
setNewMaxSorobanTxSetSize
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-