Class ConfigSettingContractLedgerCostV0

java.lang.Object
org.stellar.sdk.xdr.ConfigSettingContractLedgerCostV0

public class ConfigSettingContractLedgerCostV0 extends Object
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;
 };
 
  • 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

      public void encode(XdrDataOutputStream stream) throws IOException
      Throws:
      IOException
    • decode

      Throws:
      IOException
    • fromXdrBase64

      public static ConfigSettingContractLedgerCostV0 fromXdrBase64(String xdr) throws IOException
      Throws:
      IOException
    • fromXdrByteArray

      public static ConfigSettingContractLedgerCostV0 fromXdrByteArray(byte[] xdr) throws IOException
      Throws:
      IOException
    • builder

    • toBuilder

    • getLedgerMaxReadLedgerEntries

      public Uint32 getLedgerMaxReadLedgerEntries()
    • getLedgerMaxReadBytes

      public Uint32 getLedgerMaxReadBytes()
    • getLedgerMaxWriteLedgerEntries

      public Uint32 getLedgerMaxWriteLedgerEntries()
    • getLedgerMaxWriteBytes

      public Uint32 getLedgerMaxWriteBytes()
    • getTxMaxReadLedgerEntries

      public Uint32 getTxMaxReadLedgerEntries()
    • getTxMaxReadBytes

      public Uint32 getTxMaxReadBytes()
    • getTxMaxWriteLedgerEntries

      public Uint32 getTxMaxWriteLedgerEntries()
    • getTxMaxWriteBytes

      public Uint32 getTxMaxWriteBytes()
    • getFeeReadLedgerEntry

      public Int64 getFeeReadLedgerEntry()
    • getFeeWriteLedgerEntry

      public Int64 getFeeWriteLedgerEntry()
    • getFeeRead1KB

      public Int64 getFeeRead1KB()
    • getBucketListTargetSizeBytes

      public Int64 getBucketListTargetSizeBytes()
    • getWriteFee1KBBucketListLow

      public Int64 getWriteFee1KBBucketListLow()
    • getWriteFee1KBBucketListHigh

      public Int64 getWriteFee1KBBucketListHigh()
    • getBucketListWriteFeeGrowthFactor

      public Uint32 getBucketListWriteFeeGrowthFactor()
    • setLedgerMaxReadLedgerEntries

      public void setLedgerMaxReadLedgerEntries(Uint32 ledgerMaxReadLedgerEntries)
    • setLedgerMaxReadBytes

      public void setLedgerMaxReadBytes(Uint32 ledgerMaxReadBytes)
    • setLedgerMaxWriteLedgerEntries

      public void setLedgerMaxWriteLedgerEntries(Uint32 ledgerMaxWriteLedgerEntries)
    • setLedgerMaxWriteBytes

      public void setLedgerMaxWriteBytes(Uint32 ledgerMaxWriteBytes)
    • setTxMaxReadLedgerEntries

      public void setTxMaxReadLedgerEntries(Uint32 txMaxReadLedgerEntries)
    • setTxMaxReadBytes

      public void setTxMaxReadBytes(Uint32 txMaxReadBytes)
    • setTxMaxWriteLedgerEntries

      public void setTxMaxWriteLedgerEntries(Uint32 txMaxWriteLedgerEntries)
    • setTxMaxWriteBytes

      public void setTxMaxWriteBytes(Uint32 txMaxWriteBytes)
    • setFeeReadLedgerEntry

      public void setFeeReadLedgerEntry(Int64 feeReadLedgerEntry)
    • setFeeWriteLedgerEntry

      public void setFeeWriteLedgerEntry(Int64 feeWriteLedgerEntry)
    • setFeeRead1KB

      public void setFeeRead1KB(Int64 feeRead1KB)
    • setBucketListTargetSizeBytes

      public void setBucketListTargetSizeBytes(Int64 bucketListTargetSizeBytes)
    • setWriteFee1KBBucketListLow

      public void setWriteFee1KBBucketListLow(Int64 writeFee1KBBucketListLow)
    • setWriteFee1KBBucketListHigh

      public void setWriteFee1KBBucketListHigh(Int64 writeFee1KBBucketListHigh)
    • setBucketListWriteFeeGrowthFactor

      public void setBucketListWriteFeeGrowthFactor(Uint32 bucketListWriteFeeGrowthFactor)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toXdrBase64

      default String toXdrBase64() throws IOException
      Throws:
      IOException
    • toXdrByteArray

      default byte[] toXdrByteArray() throws IOException
      Throws:
      IOException