Package org.stellar.sdk.xdr
Class ConfigSettingContractLedgerCostV0
java.lang.Object
org.stellar.sdk.xdr.ConfigSettingContractLedgerCostV0
- All Implemented Interfaces:
XdrElement
ConfigSettingContractLedgerCostV0's original definition in the XDR file is:
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; };
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Constructor Summary
ConstructorsConstructorDescriptionConfigSettingContractLedgerCostV0
(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) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
fromXdrBase64
(String xdr) fromXdrByteArray
(byte[] xdr) int
hashCode()
void
setFeeDiskRead1KB
(Int64 feeDiskRead1KB) void
setFeeDiskReadLedgerEntry
(Int64 feeDiskReadLedgerEntry) void
setFeeWriteLedgerEntry
(Int64 feeWriteLedgerEntry) void
setLedgerMaxDiskReadBytes
(Uint32 ledgerMaxDiskReadBytes) void
setLedgerMaxDiskReadEntries
(Uint32 ledgerMaxDiskReadEntries) void
setLedgerMaxWriteBytes
(Uint32 ledgerMaxWriteBytes) void
setLedgerMaxWriteLedgerEntries
(Uint32 ledgerMaxWriteLedgerEntries) void
setRentFee1KBSorobanStateSizeHigh
(Int64 rentFee1KBSorobanStateSizeHigh) void
setRentFee1KBSorobanStateSizeLow
(Int64 rentFee1KBSorobanStateSizeLow) void
setSorobanStateRentFeeGrowthFactor
(Uint32 sorobanStateRentFeeGrowthFactor) void
setSorobanStateTargetSizeBytes
(Int64 sorobanStateTargetSizeBytes) void
setTxMaxDiskReadBytes
(Uint32 txMaxDiskReadBytes) void
setTxMaxDiskReadEntries
(Uint32 txMaxDiskReadEntries) void
setTxMaxWriteBytes
(Uint32 txMaxWriteBytes) void
setTxMaxWriteLedgerEntries
(Uint32 txMaxWriteLedgerEntries) toString()
Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
ConfigSettingContractLedgerCostV0
public ConfigSettingContractLedgerCostV0() -
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)
-
-
Method Details
-
encode
- Specified by:
encode
in interfaceXdrElement
- Throws:
IOException
-
decode
public static ConfigSettingContractLedgerCostV0 decode(XdrDataInputStream stream) throws IOException - Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getLedgerMaxDiskReadEntries
-
getLedgerMaxDiskReadBytes
-
getLedgerMaxWriteLedgerEntries
-
getLedgerMaxWriteBytes
-
getTxMaxDiskReadEntries
-
getTxMaxDiskReadBytes
-
getTxMaxWriteLedgerEntries
-
getTxMaxWriteBytes
-
getFeeDiskReadLedgerEntry
-
getFeeWriteLedgerEntry
-
getFeeDiskRead1KB
-
getSorobanStateTargetSizeBytes
-
getRentFee1KBSorobanStateSizeLow
-
getRentFee1KBSorobanStateSizeHigh
-
getSorobanStateRentFeeGrowthFactor
-
setLedgerMaxDiskReadEntries
-
setLedgerMaxDiskReadBytes
-
setLedgerMaxWriteLedgerEntries
-
setLedgerMaxWriteBytes
-
setTxMaxDiskReadEntries
-
setTxMaxDiskReadBytes
-
setTxMaxWriteLedgerEntries
-
setTxMaxWriteBytes
-
setFeeDiskReadLedgerEntry
-
setFeeWriteLedgerEntry
-
setFeeDiskRead1KB
-
setSorobanStateTargetSizeBytes
-
setRentFee1KBSorobanStateSizeLow
-
setRentFee1KBSorobanStateSizeHigh
-
setSorobanStateRentFeeGrowthFactor
-
equals
-
hashCode
public int hashCode() -
toString
-