1
- defmodule StellarBase.XDR.StateExpirationSettings do
1
+ defmodule StellarBase.XDR.StateArchivalSettings do
2
2
@ moduledoc """
3
3
Automatically generated by xdrgen
4
4
DO NOT EDIT or your changes may be overwritten
5
5
6
6
Target implementation: elixir_xdr at https://hex.pm/packages/elixir_xdr
7
7
8
- Representation of Stellar `StateExpirationSettings ` type.
8
+ Representation of Stellar `StateArchivalSettings ` type.
9
9
"""
10
10
11
11
@ behaviour XDR.Declaration
@@ -17,104 +17,104 @@ defmodule StellarBase.XDR.StateExpirationSettings do
17
17
}
18
18
19
19
@ struct_spec XDR.Struct . new (
20
- max_entry_expiration : UInt32 ,
21
- min_temp_entry_expiration : UInt32 ,
22
- min_persistent_entry_expiration : UInt32 ,
20
+ max_entry_ttl : UInt32 ,
21
+ min_temporary_ttl : UInt32 ,
22
+ min_persistent_ttl : UInt32 ,
23
23
persistent_rent_rate_denominator: Int64 ,
24
24
temp_rent_rate_denominator: Int64 ,
25
- max_entries_to_expire : UInt32 ,
25
+ max_entries_to_archive : UInt32 ,
26
26
bucket_list_size_window_sample_size: UInt32 ,
27
27
eviction_scan_size: UInt64 ,
28
28
starting_eviction_scan_level: UInt32
29
29
)
30
30
31
- @ type max_entry_expiration_type :: UInt32 . t ( )
32
- @ type min_temp_entry_expiration_type :: UInt32 . t ( )
33
- @ type min_persistent_entry_expiration_type :: UInt32 . t ( )
31
+ @ type max_entry_ttl_type :: UInt32 . t ( )
32
+ @ type min_temporary_ttl_type :: UInt32 . t ( )
33
+ @ type min_persistent_ttl_type :: UInt32 . t ( )
34
34
@ type persistent_rent_rate_denominator_type :: Int64 . t ( )
35
35
@ type temp_rent_rate_denominator_type :: Int64 . t ( )
36
- @ type max_entries_to_expire_type :: UInt32 . t ( )
36
+ @ type max_entries_to_archive_type :: UInt32 . t ( )
37
37
@ type bucket_list_size_window_sample_size_type :: UInt32 . t ( )
38
38
@ type eviction_scan_size_type :: UInt64 . t ( )
39
39
@ type starting_eviction_scan_level_type :: UInt32 . t ( )
40
40
41
41
@ type t :: % __MODULE__ {
42
- max_entry_expiration: max_entry_expiration_type ( ) ,
43
- min_temp_entry_expiration: min_temp_entry_expiration_type ( ) ,
44
- min_persistent_entry_expiration: min_persistent_entry_expiration_type ( ) ,
42
+ max_entry_ttl: max_entry_ttl_type ( ) ,
43
+ min_temporary_ttl: min_temporary_ttl_type ( ) ,
44
+ min_persistent_ttl: min_persistent_ttl_type ( ) ,
45
45
persistent_rent_rate_denominator: persistent_rent_rate_denominator_type ( ) ,
46
46
temp_rent_rate_denominator: temp_rent_rate_denominator_type ( ) ,
47
- max_entries_to_expire: max_entries_to_expire_type ( ) ,
47
+ max_entries_to_archive: max_entries_to_archive_type ( ) ,
48
48
bucket_list_size_window_sample_size: bucket_list_size_window_sample_size_type ( ) ,
49
49
eviction_scan_size: eviction_scan_size_type ( ) ,
50
50
starting_eviction_scan_level: starting_eviction_scan_level_type ( )
51
51
}
52
52
53
53
defstruct [
54
- :max_entry_expiration ,
55
- :min_temp_entry_expiration ,
56
- :min_persistent_entry_expiration ,
54
+ :max_entry_ttl ,
55
+ :min_temporary_ttl ,
56
+ :min_persistent_ttl ,
57
57
:persistent_rent_rate_denominator ,
58
58
:temp_rent_rate_denominator ,
59
- :max_entries_to_expire ,
59
+ :max_entries_to_archive ,
60
60
:bucket_list_size_window_sample_size ,
61
61
:eviction_scan_size ,
62
62
:starting_eviction_scan_level
63
63
]
64
64
65
65
@ spec new (
66
- max_entry_expiration :: max_entry_expiration_type ( ) ,
67
- min_temp_entry_expiration :: min_temp_entry_expiration_type ( ) ,
68
- min_persistent_entry_expiration :: min_persistent_entry_expiration_type ( ) ,
66
+ max_entry_ttl :: max_entry_ttl_type ( ) ,
67
+ min_temporary_ttl :: min_temporary_ttl_type ( ) ,
68
+ min_persistent_ttl :: min_persistent_ttl_type ( ) ,
69
69
persistent_rent_rate_denominator :: persistent_rent_rate_denominator_type ( ) ,
70
70
temp_rent_rate_denominator :: temp_rent_rate_denominator_type ( ) ,
71
- max_entries_to_expire :: max_entries_to_expire_type ( ) ,
71
+ max_entries_to_archive :: max_entries_to_archive_type ( ) ,
72
72
bucket_list_size_window_sample_size :: bucket_list_size_window_sample_size_type ( ) ,
73
73
eviction_scan_size :: eviction_scan_size_type ( ) ,
74
74
starting_eviction_scan_level :: starting_eviction_scan_level_type ( )
75
75
) :: t ( )
76
76
def new (
77
- % UInt32 { } = max_entry_expiration ,
78
- % UInt32 { } = min_temp_entry_expiration ,
79
- % UInt32 { } = min_persistent_entry_expiration ,
77
+ % UInt32 { } = max_entry_ttl ,
78
+ % UInt32 { } = min_temporary_ttl ,
79
+ % UInt32 { } = min_persistent_ttl ,
80
80
% Int64 { } = persistent_rent_rate_denominator ,
81
81
% Int64 { } = temp_rent_rate_denominator ,
82
- % UInt32 { } = max_entries_to_expire ,
82
+ % UInt32 { } = max_entries_to_archive ,
83
83
% UInt32 { } = bucket_list_size_window_sample_size ,
84
84
% UInt64 { } = eviction_scan_size ,
85
85
% UInt32 { } = starting_eviction_scan_level
86
86
) ,
87
87
do: % __MODULE__ {
88
- max_entry_expiration: max_entry_expiration ,
89
- min_temp_entry_expiration: min_temp_entry_expiration ,
90
- min_persistent_entry_expiration: min_persistent_entry_expiration ,
88
+ max_entry_ttl: max_entry_ttl ,
89
+ min_temporary_ttl: min_temporary_ttl ,
90
+ min_persistent_ttl: min_persistent_ttl ,
91
91
persistent_rent_rate_denominator: persistent_rent_rate_denominator ,
92
92
temp_rent_rate_denominator: temp_rent_rate_denominator ,
93
- max_entries_to_expire: max_entries_to_expire ,
93
+ max_entries_to_archive: max_entries_to_archive ,
94
94
bucket_list_size_window_sample_size: bucket_list_size_window_sample_size ,
95
95
eviction_scan_size: eviction_scan_size ,
96
96
starting_eviction_scan_level: starting_eviction_scan_level
97
97
}
98
98
99
99
@ impl true
100
100
def encode_xdr ( % __MODULE__ {
101
- max_entry_expiration: max_entry_expiration ,
102
- min_temp_entry_expiration: min_temp_entry_expiration ,
103
- min_persistent_entry_expiration: min_persistent_entry_expiration ,
101
+ max_entry_ttl: max_entry_ttl ,
102
+ min_temporary_ttl: min_temporary_ttl ,
103
+ min_persistent_ttl: min_persistent_ttl ,
104
104
persistent_rent_rate_denominator: persistent_rent_rate_denominator ,
105
105
temp_rent_rate_denominator: temp_rent_rate_denominator ,
106
- max_entries_to_expire: max_entries_to_expire ,
106
+ max_entries_to_archive: max_entries_to_archive ,
107
107
bucket_list_size_window_sample_size: bucket_list_size_window_sample_size ,
108
108
eviction_scan_size: eviction_scan_size ,
109
109
starting_eviction_scan_level: starting_eviction_scan_level
110
110
} ) do
111
111
[
112
- max_entry_expiration: max_entry_expiration ,
113
- min_temp_entry_expiration: min_temp_entry_expiration ,
114
- min_persistent_entry_expiration: min_persistent_entry_expiration ,
112
+ max_entry_ttl: max_entry_ttl ,
113
+ min_temporary_ttl: min_temporary_ttl ,
114
+ min_persistent_ttl: min_persistent_ttl ,
115
115
persistent_rent_rate_denominator: persistent_rent_rate_denominator ,
116
116
temp_rent_rate_denominator: temp_rent_rate_denominator ,
117
- max_entries_to_expire: max_entries_to_expire ,
117
+ max_entries_to_archive: max_entries_to_archive ,
118
118
bucket_list_size_window_sample_size: bucket_list_size_window_sample_size ,
119
119
eviction_scan_size: eviction_scan_size ,
120
120
starting_eviction_scan_level: starting_eviction_scan_level
@@ -125,23 +125,23 @@ defmodule StellarBase.XDR.StateExpirationSettings do
125
125
126
126
@ impl true
127
127
def encode_xdr! ( % __MODULE__ {
128
- max_entry_expiration: max_entry_expiration ,
129
- min_temp_entry_expiration: min_temp_entry_expiration ,
130
- min_persistent_entry_expiration: min_persistent_entry_expiration ,
128
+ max_entry_ttl: max_entry_ttl ,
129
+ min_temporary_ttl: min_temporary_ttl ,
130
+ min_persistent_ttl: min_persistent_ttl ,
131
131
persistent_rent_rate_denominator: persistent_rent_rate_denominator ,
132
132
temp_rent_rate_denominator: temp_rent_rate_denominator ,
133
- max_entries_to_expire: max_entries_to_expire ,
133
+ max_entries_to_archive: max_entries_to_archive ,
134
134
bucket_list_size_window_sample_size: bucket_list_size_window_sample_size ,
135
135
eviction_scan_size: eviction_scan_size ,
136
136
starting_eviction_scan_level: starting_eviction_scan_level
137
137
} ) do
138
138
[
139
- max_entry_expiration: max_entry_expiration ,
140
- min_temp_entry_expiration: min_temp_entry_expiration ,
141
- min_persistent_entry_expiration: min_persistent_entry_expiration ,
139
+ max_entry_ttl: max_entry_ttl ,
140
+ min_temporary_ttl: min_temporary_ttl ,
141
+ min_persistent_ttl: min_persistent_ttl ,
142
142
persistent_rent_rate_denominator: persistent_rent_rate_denominator ,
143
143
temp_rent_rate_denominator: temp_rent_rate_denominator ,
144
- max_entries_to_expire: max_entries_to_expire ,
144
+ max_entries_to_archive: max_entries_to_archive ,
145
145
bucket_list_size_window_sample_size: bucket_list_size_window_sample_size ,
146
146
eviction_scan_size: eviction_scan_size ,
147
147
starting_eviction_scan_level: starting_eviction_scan_level
@@ -158,25 +158,25 @@ defmodule StellarBase.XDR.StateExpirationSettings do
158
158
{ :ok ,
159
159
{ % XDR.Struct {
160
160
components: [
161
- max_entry_expiration: max_entry_expiration ,
162
- min_temp_entry_expiration: min_temp_entry_expiration ,
163
- min_persistent_entry_expiration: min_persistent_entry_expiration ,
161
+ max_entry_ttl: max_entry_ttl ,
162
+ min_temporary_ttl: min_temporary_ttl ,
163
+ min_persistent_ttl: min_persistent_ttl ,
164
164
persistent_rent_rate_denominator: persistent_rent_rate_denominator ,
165
165
temp_rent_rate_denominator: temp_rent_rate_denominator ,
166
- max_entries_to_expire: max_entries_to_expire ,
166
+ max_entries_to_archive: max_entries_to_archive ,
167
167
bucket_list_size_window_sample_size: bucket_list_size_window_sample_size ,
168
168
eviction_scan_size: eviction_scan_size ,
169
169
starting_eviction_scan_level: starting_eviction_scan_level
170
170
]
171
171
} , rest } } ->
172
172
{ :ok ,
173
173
{ new (
174
- max_entry_expiration ,
175
- min_temp_entry_expiration ,
176
- min_persistent_entry_expiration ,
174
+ max_entry_ttl ,
175
+ min_temporary_ttl ,
176
+ min_persistent_ttl ,
177
177
persistent_rent_rate_denominator ,
178
178
temp_rent_rate_denominator ,
179
- max_entries_to_expire ,
179
+ max_entries_to_archive ,
180
180
bucket_list_size_window_sample_size ,
181
181
eviction_scan_size ,
182
182
starting_eviction_scan_level
@@ -193,25 +193,25 @@ defmodule StellarBase.XDR.StateExpirationSettings do
193
193
def decode_xdr! ( bytes , struct ) do
194
194
{ % XDR.Struct {
195
195
components: [
196
- max_entry_expiration: max_entry_expiration ,
197
- min_temp_entry_expiration: min_temp_entry_expiration ,
198
- min_persistent_entry_expiration: min_persistent_entry_expiration ,
196
+ max_entry_ttl: max_entry_ttl ,
197
+ min_temporary_ttl: min_temporary_ttl ,
198
+ min_persistent_ttl: min_persistent_ttl ,
199
199
persistent_rent_rate_denominator: persistent_rent_rate_denominator ,
200
200
temp_rent_rate_denominator: temp_rent_rate_denominator ,
201
- max_entries_to_expire: max_entries_to_expire ,
201
+ max_entries_to_archive: max_entries_to_archive ,
202
202
bucket_list_size_window_sample_size: bucket_list_size_window_sample_size ,
203
203
eviction_scan_size: eviction_scan_size ,
204
204
starting_eviction_scan_level: starting_eviction_scan_level
205
205
]
206
206
} , rest } = XDR.Struct . decode_xdr! ( bytes , struct )
207
207
208
208
{ new (
209
- max_entry_expiration ,
210
- min_temp_entry_expiration ,
211
- min_persistent_entry_expiration ,
209
+ max_entry_ttl ,
210
+ min_temporary_ttl ,
211
+ min_persistent_ttl ,
212
212
persistent_rent_rate_denominator ,
213
213
temp_rent_rate_denominator ,
214
- max_entries_to_expire ,
214
+ max_entries_to_archive ,
215
215
bucket_list_size_window_sample_size ,
216
216
eviction_scan_size ,
217
217
starting_eviction_scan_level
0 commit comments