public class LedgerUpgrade extends java.lang.Object implements XdrElement
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; };
Modifier and Type | Class and Description |
---|---|
static class |
LedgerUpgrade.LedgerUpgradeBuilder |
Constructor and Description |
---|
LedgerUpgrade() |
LedgerUpgrade(LedgerUpgradeType discriminant,
Uint32 newLedgerVersion,
Uint32 newBaseFee,
Uint32 newMaxTxSetSize,
Uint32 newBaseReserve,
Uint32 newFlags,
ConfigUpgradeSetKey newConfig,
Uint32 newMaxSorobanTxSetSize) |
toXdrBase64, toXdrByteArray
public LedgerUpgrade()
public LedgerUpgrade(LedgerUpgradeType discriminant, Uint32 newLedgerVersion, Uint32 newBaseFee, Uint32 newMaxTxSetSize, Uint32 newBaseReserve, Uint32 newFlags, ConfigUpgradeSetKey newConfig, Uint32 newMaxSorobanTxSetSize)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static LedgerUpgrade decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static LedgerUpgrade fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static LedgerUpgrade fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static LedgerUpgrade.LedgerUpgradeBuilder builder()
public LedgerUpgrade.LedgerUpgradeBuilder toBuilder()
public LedgerUpgradeType getDiscriminant()
public Uint32 getNewLedgerVersion()
public Uint32 getNewBaseFee()
public Uint32 getNewMaxTxSetSize()
public Uint32 getNewBaseReserve()
public Uint32 getNewFlags()
public ConfigUpgradeSetKey getNewConfig()
public Uint32 getNewMaxSorobanTxSetSize()
public void setDiscriminant(LedgerUpgradeType discriminant)
public void setNewLedgerVersion(Uint32 newLedgerVersion)
public void setNewBaseFee(Uint32 newBaseFee)
public void setNewMaxTxSetSize(Uint32 newMaxTxSetSize)
public void setNewBaseReserve(Uint32 newBaseReserve)
public void setNewFlags(Uint32 newFlags)
public void setNewConfig(ConfigUpgradeSetKey newConfig)
public void setNewMaxSorobanTxSetSize(Uint32 newMaxSorobanTxSetSize)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object