Package org.stellar.sdk.xdr
Class ConfigSettingContractLedgerCostExtV0
java.lang.Object
org.stellar.sdk.xdr.ConfigSettingContractLedgerCostExtV0
- All Implemented Interfaces:
XdrElement
ConfigSettingContractLedgerCostExtV0's original definition in the XDR file is:
struct ConfigSettingContractLedgerCostExtV0
{
// Maximum number of RO+RW entries in the transaction footprint.
uint32 txMaxFootprintEntries;
// Fee per 1 KB of data written to the ledger.
// Unlike the rent fee, this is a flat fee that is charged for any ledger
// write, independent of the type of the entry being written.
int64 feeWrite1KB;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionConfigSettingContractLedgerCostExtV0(Uint32 txMaxFootprintEntries, Int64 feeWrite1KB) Creates a newConfigSettingContractLedgerCostExtV0instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()decode(XdrDataInputStream stream) decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanfromXdrBase64(String xdr) fromXdrByteArray(byte[] xdr) Value of thefeeWrite1KBfield.Value of thetxMaxFootprintEntriesfield.inthashCode()voidsetFeeWrite1KB(Int64 feeWrite1KB) Value of thefeeWrite1KBfield.voidsetTxMaxFootprintEntries(Uint32 txMaxFootprintEntries) Value of thetxMaxFootprintEntriesfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
ConfigSettingContractLedgerCostExtV0
public ConfigSettingContractLedgerCostExtV0() -
ConfigSettingContractLedgerCostExtV0
Creates a newConfigSettingContractLedgerCostExtV0instance.- Parameters:
txMaxFootprintEntries- thetxMaxFootprintEntriesfield valuefeeWrite1KB- thefeeWrite1KBfield 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
public static ConfigSettingContractLedgerCostExtV0 decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
public static ConfigSettingContractLedgerCostExtV0 decode(XdrDataInputStream stream) throws IOException - 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
public static ConfigSettingContractLedgerCostExtV0.ConfigSettingContractLedgerCostExtV0Builder builder() -
toBuilder
-
getTxMaxFootprintEntries
Value of thetxMaxFootprintEntriesfield.- Returns:
- the
txMaxFootprintEntriesfield value
-
getFeeWrite1KB
Value of thefeeWrite1KBfield.- Returns:
- the
feeWrite1KBfield value
-
setTxMaxFootprintEntries
Value of thetxMaxFootprintEntriesfield.- Parameters:
txMaxFootprintEntries- thetxMaxFootprintEntriesfield value
-
setFeeWrite1KB
Value of thefeeWrite1KBfield.- Parameters:
feeWrite1KB- thefeeWrite1KBfield value
-
equals
-
hashCode
public int hashCode() -
toString
-