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) voidencode(XdrDataOutputStream stream) booleanfromXdrBase64(String xdr) fromXdrByteArray(byte[] xdr) inthashCode()voidsetFeeDiskRead1KB(Int64 feeDiskRead1KB) voidsetFeeDiskReadLedgerEntry(Int64 feeDiskReadLedgerEntry) voidsetFeeWriteLedgerEntry(Int64 feeWriteLedgerEntry) voidsetLedgerMaxDiskReadBytes(Uint32 ledgerMaxDiskReadBytes) voidsetLedgerMaxDiskReadEntries(Uint32 ledgerMaxDiskReadEntries) voidsetLedgerMaxWriteBytes(Uint32 ledgerMaxWriteBytes) voidsetLedgerMaxWriteLedgerEntries(Uint32 ledgerMaxWriteLedgerEntries) voidsetRentFee1KBSorobanStateSizeHigh(Int64 rentFee1KBSorobanStateSizeHigh) voidsetRentFee1KBSorobanStateSizeLow(Int64 rentFee1KBSorobanStateSizeLow) voidsetSorobanStateRentFeeGrowthFactor(Uint32 sorobanStateRentFeeGrowthFactor) voidsetSorobanStateTargetSizeBytes(Int64 sorobanStateTargetSizeBytes) voidsetTxMaxDiskReadBytes(Uint32 txMaxDiskReadBytes) voidsetTxMaxDiskReadEntries(Uint32 txMaxDiskReadEntries) voidsetTxMaxWriteBytes(Uint32 txMaxWriteBytes) voidsetTxMaxWriteLedgerEntries(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:
encodein 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
-