Package org.stellar.sdk.xdr
Class ConfigSettingContractLedgerCostV0
java.lang.Object
org.stellar.sdk.xdr.ConfigSettingContractLedgerCostV0
ConfigSettingContractLedgerCostV0's original definition in the XDR file is:
struct ConfigSettingContractLedgerCostV0 { // Maximum number of ledger entry read operations per ledger uint32 ledgerMaxReadLedgerEntries; // Maximum number of bytes that can be read per ledger uint32 ledgerMaxReadBytes; // 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 ledger entry read operations per transaction uint32 txMaxReadLedgerEntries; // Maximum number of bytes that can be read per transaction uint32 txMaxReadBytes; // Maximum number of ledger entry write operations per transaction uint32 txMaxWriteLedgerEntries; // Maximum number of bytes that can be written per transaction uint32 txMaxWriteBytes; int64 feeReadLedgerEntry; // Fee per ledger entry read int64 feeWriteLedgerEntry; // Fee per ledger entry write int64 feeRead1KB; // Fee for reading 1KB // The following parameters determine the write fee per 1KB. // Write fee grows linearly until bucket list reaches this size int64 bucketListTargetSizeBytes; // Fee per 1KB write when the bucket list is empty int64 writeFee1KBBucketListLow; // Fee per 1KB write when the bucket list has reached `bucketListTargetSizeBytes` int64 writeFee1KBBucketListHigh; // Write fee multiplier for any additional data past the first `bucketListTargetSizeBytes` uint32 bucketListWriteFeeGrowthFactor; };
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
ConstructorDescriptionConfigSettingContractLedgerCostV0
(Uint32 ledgerMaxReadLedgerEntries, Uint32 ledgerMaxReadBytes, Uint32 ledgerMaxWriteLedgerEntries, Uint32 ledgerMaxWriteBytes, Uint32 txMaxReadLedgerEntries, Uint32 txMaxReadBytes, Uint32 txMaxWriteLedgerEntries, Uint32 txMaxWriteBytes, Int64 feeReadLedgerEntry, Int64 feeWriteLedgerEntry, Int64 feeRead1KB, Int64 bucketListTargetSizeBytes, Int64 writeFee1KBBucketListLow, Int64 writeFee1KBBucketListHigh, Uint32 bucketListWriteFeeGrowthFactor) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
fromXdrBase64
(String xdr) fromXdrByteArray
(byte[] xdr) int
hashCode()
void
setBucketListTargetSizeBytes
(Int64 bucketListTargetSizeBytes) void
setBucketListWriteFeeGrowthFactor
(Uint32 bucketListWriteFeeGrowthFactor) void
setFeeRead1KB
(Int64 feeRead1KB) void
setFeeReadLedgerEntry
(Int64 feeReadLedgerEntry) void
setFeeWriteLedgerEntry
(Int64 feeWriteLedgerEntry) void
setLedgerMaxReadBytes
(Uint32 ledgerMaxReadBytes) void
setLedgerMaxReadLedgerEntries
(Uint32 ledgerMaxReadLedgerEntries) void
setLedgerMaxWriteBytes
(Uint32 ledgerMaxWriteBytes) void
setLedgerMaxWriteLedgerEntries
(Uint32 ledgerMaxWriteLedgerEntries) void
setTxMaxReadBytes
(Uint32 txMaxReadBytes) void
setTxMaxReadLedgerEntries
(Uint32 txMaxReadLedgerEntries) void
setTxMaxWriteBytes
(Uint32 txMaxWriteBytes) void
setTxMaxWriteLedgerEntries
(Uint32 txMaxWriteLedgerEntries) void
setWriteFee1KBBucketListHigh
(Int64 writeFee1KBBucketListHigh) void
setWriteFee1KBBucketListLow
(Int64 writeFee1KBBucketListLow) toString()
default String
default byte[]
-
Constructor Details
-
ConfigSettingContractLedgerCostV0
public ConfigSettingContractLedgerCostV0() -
ConfigSettingContractLedgerCostV0
public ConfigSettingContractLedgerCostV0(Uint32 ledgerMaxReadLedgerEntries, Uint32 ledgerMaxReadBytes, Uint32 ledgerMaxWriteLedgerEntries, Uint32 ledgerMaxWriteBytes, Uint32 txMaxReadLedgerEntries, Uint32 txMaxReadBytes, Uint32 txMaxWriteLedgerEntries, Uint32 txMaxWriteBytes, Int64 feeReadLedgerEntry, Int64 feeWriteLedgerEntry, Int64 feeRead1KB, Int64 bucketListTargetSizeBytes, Int64 writeFee1KBBucketListLow, Int64 writeFee1KBBucketListHigh, Uint32 bucketListWriteFeeGrowthFactor)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
public static ConfigSettingContractLedgerCostV0 decode(XdrDataInputStream stream) throws IOException - Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getLedgerMaxReadLedgerEntries
-
getLedgerMaxReadBytes
-
getLedgerMaxWriteLedgerEntries
-
getLedgerMaxWriteBytes
-
getTxMaxReadLedgerEntries
-
getTxMaxReadBytes
-
getTxMaxWriteLedgerEntries
-
getTxMaxWriteBytes
-
getFeeReadLedgerEntry
-
getFeeWriteLedgerEntry
-
getFeeRead1KB
-
getBucketListTargetSizeBytes
-
getWriteFee1KBBucketListLow
-
getWriteFee1KBBucketListHigh
-
getBucketListWriteFeeGrowthFactor
-
setLedgerMaxReadLedgerEntries
-
setLedgerMaxReadBytes
-
setLedgerMaxWriteLedgerEntries
-
setLedgerMaxWriteBytes
-
setTxMaxReadLedgerEntries
-
setTxMaxReadBytes
-
setTxMaxWriteLedgerEntries
-
setTxMaxWriteBytes
-
setFeeReadLedgerEntry
-
setFeeWriteLedgerEntry
-
setFeeRead1KB
-
setBucketListTargetSizeBytes
-
setWriteFee1KBBucketListLow
-
setWriteFee1KBBucketListHigh
-
setBucketListWriteFeeGrowthFactor
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-