ConfigSettingContractLedgerCostV0Xdr

data class ConfigSettingContractLedgerCostV0Xdr(val ledgerMaxDiskReadEntries: Uint32Xdr, val ledgerMaxDiskReadBytes: Uint32Xdr, val ledgerMaxWriteLedgerEntries: Uint32Xdr, val ledgerMaxWriteBytes: Uint32Xdr, val txMaxDiskReadEntries: Uint32Xdr, val txMaxDiskReadBytes: Uint32Xdr, val txMaxWriteLedgerEntries: Uint32Xdr, val txMaxWriteBytes: Uint32Xdr, val feeDiskReadLedgerEntry: Int64Xdr, val feeWriteLedgerEntry: Int64Xdr, val feeDiskRead1Kb: Int64Xdr, val sorobanStateTargetSizeBytes: Int64Xdr, val rentFee1KbSorobanStateSizeLow: Int64Xdr, val rentFee1KbSorobanStateSizeHigh: Int64Xdr, val sorobanStateRentFeeGrowthFactor: Uint32Xdr)

XDR Source: 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;

};

Constructors

Link copied to clipboard
constructor(ledgerMaxDiskReadEntries: Uint32Xdr, ledgerMaxDiskReadBytes: Uint32Xdr, ledgerMaxWriteLedgerEntries: Uint32Xdr, ledgerMaxWriteBytes: Uint32Xdr, txMaxDiskReadEntries: Uint32Xdr, txMaxDiskReadBytes: Uint32Xdr, txMaxWriteLedgerEntries: Uint32Xdr, txMaxWriteBytes: Uint32Xdr, feeDiskReadLedgerEntry: Int64Xdr, feeWriteLedgerEntry: Int64Xdr, feeDiskRead1Kb: Int64Xdr, sorobanStateTargetSizeBytes: Int64Xdr, rentFee1KbSorobanStateSizeLow: Int64Xdr, rentFee1KbSorobanStateSizeHigh: Int64Xdr, sorobanStateRentFeeGrowthFactor: Uint32Xdr)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Fee for reading 1KB disk

Link copied to clipboard

Fee per disk ledger entry read

Link copied to clipboard

Fee per ledger entry write

Link copied to clipboard

Maximum number of bytes of disk reads that can be performed per ledger

Link copied to clipboard

Maximum number of disk entry read operations per ledger

Link copied to clipboard

Maximum number of bytes that can be written per ledger

Link copied to clipboard

Maximum number of ledger entry write operations per ledger

Link copied to clipboard

Fee per 1KB rent when the soroban state has reached sorobanStateTargetSizeBytes

Link copied to clipboard

Fee per 1KB rent when the soroban state is empty

Link copied to clipboard

Rent fee multiplier for any additional data past the first sorobanStateTargetSizeBytes

Link copied to clipboard

The following parameters determine the write fee per 1KB. Rent fee grows linearly until soroban state reaches this size

Link copied to clipboard

Maximum number of bytes of disk reads that can be performed per transaction

Link copied to clipboard

Maximum number of disk entry read operations per transaction

Link copied to clipboard

Maximum number of bytes that can be written per transaction

Link copied to clipboard

Maximum number of ledger entry write operations per transaction

Functions

Link copied to clipboard
fun encode(writer: XdrWriter)