public class ConfigSettingContractLedgerCostV0 extends java.lang.Object implements XdrElement
struct ConfigSettingContractLedgerCostV0 { // Maximum number of disk entry read operations per ledger uint32 ledgerMaxDiskReadEntries; // Maximum number of bytes of disk reads that can be performed per ledger uint32 ledgerMaxDiskReadBytes; // Maximum number of ledger entry write operations per ledger uint32 ledgerMaxWriteLedgerEntries; // Maximum number of bytes that can be written per ledger uint32 ledgerMaxWriteBytes; // Maximum number of disk entry read operations per transaction uint32 txMaxDiskReadEntries; // Maximum number of bytes of disk reads that can be performed per transaction uint32 txMaxDiskReadBytes; // Maximum number of ledger entry write operations per transaction uint32 txMaxWriteLedgerEntries; // Maximum number of bytes that can be written per transaction uint32 txMaxWriteBytes; int64 feeDiskReadLedgerEntry; // Fee per disk ledger entry read int64 feeWriteLedgerEntry; // Fee per ledger entry write int64 feeDiskRead1KB; // Fee for reading 1KB disk // The following parameters determine the write fee per 1KB. // Rent fee grows linearly until soroban state reaches this size int64 sorobanStateTargetSizeBytes; // Fee per 1KB rent when the soroban state is empty int64 rentFee1KBSorobanStateSizeLow; // Fee per 1KB rent when the soroban state has reached `sorobanStateTargetSizeBytes` int64 rentFee1KBSorobanStateSizeHigh; // Rent fee multiplier for any additional data past the first `sorobanStateTargetSizeBytes` uint32 sorobanStateRentFeeGrowthFactor; };
Modifier and Type | Class and Description |
---|---|
static class |
ConfigSettingContractLedgerCostV0.ConfigSettingContractLedgerCostV0Builder |
Constructor and Description |
---|
ConfigSettingContractLedgerCostV0() |
ConfigSettingContractLedgerCostV0(Uint32 ledgerMaxDiskReadEntries,
Uint32 ledgerMaxDiskReadBytes,
Uint32 ledgerMaxWriteLedgerEntries,
Uint32 ledgerMaxWriteBytes,
Uint32 txMaxDiskReadEntries,
Uint32 txMaxDiskReadBytes,
Uint32 txMaxWriteLedgerEntries,
Uint32 txMaxWriteBytes,
Int64 feeDiskReadLedgerEntry,
Int64 feeWriteLedgerEntry,
Int64 feeDiskRead1KB,
Int64 sorobanStateTargetSizeBytes,
Int64 rentFee1KBSorobanStateSizeLow,
Int64 rentFee1KBSorobanStateSizeHigh,
Uint32 sorobanStateRentFeeGrowthFactor) |
toXdrBase64, toXdrByteArray
public ConfigSettingContractLedgerCostV0()
public ConfigSettingContractLedgerCostV0(Uint32 ledgerMaxDiskReadEntries, Uint32 ledgerMaxDiskReadBytes, Uint32 ledgerMaxWriteLedgerEntries, Uint32 ledgerMaxWriteBytes, Uint32 txMaxDiskReadEntries, Uint32 txMaxDiskReadBytes, Uint32 txMaxWriteLedgerEntries, Uint32 txMaxWriteBytes, Int64 feeDiskReadLedgerEntry, Int64 feeWriteLedgerEntry, Int64 feeDiskRead1KB, Int64 sorobanStateTargetSizeBytes, Int64 rentFee1KBSorobanStateSizeLow, Int64 rentFee1KBSorobanStateSizeHigh, Uint32 sorobanStateRentFeeGrowthFactor)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static ConfigSettingContractLedgerCostV0 decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static ConfigSettingContractLedgerCostV0 fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static ConfigSettingContractLedgerCostV0 fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static ConfigSettingContractLedgerCostV0.ConfigSettingContractLedgerCostV0Builder builder()
public ConfigSettingContractLedgerCostV0.ConfigSettingContractLedgerCostV0Builder toBuilder()
public Uint32 getLedgerMaxDiskReadEntries()
public Uint32 getLedgerMaxDiskReadBytes()
public Uint32 getLedgerMaxWriteLedgerEntries()
public Uint32 getLedgerMaxWriteBytes()
public Uint32 getTxMaxDiskReadEntries()
public Uint32 getTxMaxDiskReadBytes()
public Uint32 getTxMaxWriteLedgerEntries()
public Uint32 getTxMaxWriteBytes()
public Int64 getFeeDiskReadLedgerEntry()
public Int64 getFeeWriteLedgerEntry()
public Int64 getFeeDiskRead1KB()
public Int64 getSorobanStateTargetSizeBytes()
public Int64 getRentFee1KBSorobanStateSizeLow()
public Int64 getRentFee1KBSorobanStateSizeHigh()
public Uint32 getSorobanStateRentFeeGrowthFactor()
public void setLedgerMaxDiskReadEntries(Uint32 ledgerMaxDiskReadEntries)
public void setLedgerMaxDiskReadBytes(Uint32 ledgerMaxDiskReadBytes)
public void setLedgerMaxWriteLedgerEntries(Uint32 ledgerMaxWriteLedgerEntries)
public void setLedgerMaxWriteBytes(Uint32 ledgerMaxWriteBytes)
public void setTxMaxDiskReadEntries(Uint32 txMaxDiskReadEntries)
public void setTxMaxDiskReadBytes(Uint32 txMaxDiskReadBytes)
public void setTxMaxWriteLedgerEntries(Uint32 txMaxWriteLedgerEntries)
public void setTxMaxWriteBytes(Uint32 txMaxWriteBytes)
public void setFeeDiskReadLedgerEntry(Int64 feeDiskReadLedgerEntry)
public void setFeeWriteLedgerEntry(Int64 feeWriteLedgerEntry)
public void setFeeDiskRead1KB(Int64 feeDiskRead1KB)
public void setSorobanStateTargetSizeBytes(Int64 sorobanStateTargetSizeBytes)
public void setRentFee1KBSorobanStateSizeLow(Int64 rentFee1KBSorobanStateSizeLow)
public void setRentFee1KBSorobanStateSizeHigh(Int64 rentFee1KBSorobanStateSizeHigh)
public void setSorobanStateRentFeeGrowthFactor(Uint32 sorobanStateRentFeeGrowthFactor)
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