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
-
Constructor Summary
ConstructorDescriptionLedgerUpgrade
(LedgerUpgradeType discriminant, Uint32 newLedgerVersion, Uint32 newBaseFee, Uint32 newMaxTxSetSize, Uint32 newBaseReserve, Uint32 newFlags, ConfigUpgradeSetKey newConfig, Uint32 newMaxSorobanTxSetSize) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static LedgerUpgrade
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static LedgerUpgrade
fromXdrBase64
(String xdr) static LedgerUpgrade
fromXdrByteArray
(byte[] xdr) int
hashCode()
void
setDiscriminant
(LedgerUpgradeType discriminant) void
setNewBaseFee
(Uint32 newBaseFee) void
setNewBaseReserve
(Uint32 newBaseReserve) void
setNewConfig
(ConfigUpgradeSetKey newConfig) void
setNewFlags
(Uint32 newFlags) void
setNewLedgerVersion
(Uint32 newLedgerVersion) void
setNewMaxSorobanTxSetSize
(Uint32 newMaxSorobanTxSetSize) void
setNewMaxTxSetSize
(Uint32 newMaxTxSetSize) toString()
default String
default 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
-