Skip to content

Commit

Permalink
Bump XDR (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
SirTyson authored Feb 1, 2024
1 parent bd86b19 commit 65843de
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 12 deletions.
14 changes: 10 additions & 4 deletions src/curr/generated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub const XDR_FILES_SHA256: [(&str, &str); 12] = [
),
(
"xdr/curr/Stellar-contract-config-setting.x",
"e466c4dfae1d5d181afbd990b91f26c5d8ed84a7fa987875f8d643cf97e34a77",
"fc42980e8710514679477f767ecad6f9348c38d24b1e4476fdd7e73e8e672ea8",
),
(
"xdr/curr/Stellar-contract-env-meta.x",
Expand Down Expand Up @@ -4238,8 +4238,11 @@ impl WriteXdr for ContractCostParamEntry {
/// // Number of snapshots to use when calculating average BucketList size
/// uint32 bucketListSizeWindowSampleSize;
///
/// // How often to sample the BucketList size for the average, in ledgers
/// uint32 bucketListWindowSamplePeriod;
///
/// // Maximum number of bytes that we scan for eviction per ledger
/// uint64 evictionScanSize;
/// uint32 evictionScanSize;
///
/// // Lowest BucketList level to be scanned to evict entries
/// uint32 startingEvictionScanLevel;
Expand All @@ -4261,7 +4264,8 @@ pub struct StateArchivalSettings {
pub temp_rent_rate_denominator: i64,
pub max_entries_to_archive: u32,
pub bucket_list_size_window_sample_size: u32,
pub eviction_scan_size: u64,
pub bucket_list_window_sample_period: u32,
pub eviction_scan_size: u32,
pub starting_eviction_scan_level: u32,
}

Expand All @@ -4277,7 +4281,8 @@ impl ReadXdr for StateArchivalSettings {
temp_rent_rate_denominator: i64::read_xdr(r)?,
max_entries_to_archive: u32::read_xdr(r)?,
bucket_list_size_window_sample_size: u32::read_xdr(r)?,
eviction_scan_size: u64::read_xdr(r)?,
bucket_list_window_sample_period: u32::read_xdr(r)?,
eviction_scan_size: u32::read_xdr(r)?,
starting_eviction_scan_level: u32::read_xdr(r)?,
})
})
Expand All @@ -4295,6 +4300,7 @@ impl WriteXdr for StateArchivalSettings {
self.temp_rent_rate_denominator.write_xdr(w)?;
self.max_entries_to_archive.write_xdr(w)?;
self.bucket_list_size_window_sample_size.write_xdr(w)?;
self.bucket_list_window_sample_period.write_xdr(w)?;
self.eviction_scan_size.write_xdr(w)?;
self.starting_eviction_scan_level.write_xdr(w)?;
Ok(())
Expand Down
14 changes: 10 additions & 4 deletions src/next/generated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub const XDR_FILES_SHA256: [(&str, &str); 12] = [
),
(
"xdr/next/Stellar-contract-config-setting.x",
"e466c4dfae1d5d181afbd990b91f26c5d8ed84a7fa987875f8d643cf97e34a77",
"fc42980e8710514679477f767ecad6f9348c38d24b1e4476fdd7e73e8e672ea8",
),
(
"xdr/next/Stellar-contract-env-meta.x",
Expand Down Expand Up @@ -4238,8 +4238,11 @@ impl WriteXdr for ContractCostParamEntry {
/// // Number of snapshots to use when calculating average BucketList size
/// uint32 bucketListSizeWindowSampleSize;
///
/// // How often to sample the BucketList size for the average, in ledgers
/// uint32 bucketListWindowSamplePeriod;
///
/// // Maximum number of bytes that we scan for eviction per ledger
/// uint64 evictionScanSize;
/// uint32 evictionScanSize;
///
/// // Lowest BucketList level to be scanned to evict entries
/// uint32 startingEvictionScanLevel;
Expand All @@ -4261,7 +4264,8 @@ pub struct StateArchivalSettings {
pub temp_rent_rate_denominator: i64,
pub max_entries_to_archive: u32,
pub bucket_list_size_window_sample_size: u32,
pub eviction_scan_size: u64,
pub bucket_list_window_sample_period: u32,
pub eviction_scan_size: u32,
pub starting_eviction_scan_level: u32,
}

Expand All @@ -4277,7 +4281,8 @@ impl ReadXdr for StateArchivalSettings {
temp_rent_rate_denominator: i64::read_xdr(r)?,
max_entries_to_archive: u32::read_xdr(r)?,
bucket_list_size_window_sample_size: u32::read_xdr(r)?,
eviction_scan_size: u64::read_xdr(r)?,
bucket_list_window_sample_period: u32::read_xdr(r)?,
eviction_scan_size: u32::read_xdr(r)?,
starting_eviction_scan_level: u32::read_xdr(r)?,
})
})
Expand All @@ -4295,6 +4300,7 @@ impl WriteXdr for StateArchivalSettings {
self.temp_rent_rate_denominator.write_xdr(w)?;
self.max_entries_to_archive.write_xdr(w)?;
self.bucket_list_size_window_sample_size.write_xdr(w)?;
self.bucket_list_window_sample_period.write_xdr(w)?;
self.eviction_scan_size.write_xdr(w)?;
self.starting_eviction_scan_level.write_xdr(w)?;
Ok(())
Expand Down
2 changes: 1 addition & 1 deletion xdr/curr
2 changes: 1 addition & 1 deletion xdr/curr-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bb54e505f814386a3f45172e0b7e95b7badbe969
b96148cd4acc372cc9af17b909ffe4b12c43ecb6
2 changes: 1 addition & 1 deletion xdr/next
2 changes: 1 addition & 1 deletion xdr/next-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
b3d9e9f43b9a3a4e89652e505ca275573cfab6a1
6a71b137bc49f901bed53c8c215c26213017026c

0 comments on commit 65843de

Please sign in to comment.