/
slashing.pb.dart
239 lines (220 loc) · 10.3 KB
/
slashing.pb.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
///
// Generated code. Do not modify.
// source: cosmos/slashing/v1beta1/slashing.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides,camel_case_types,constant_identifier_names,directives_ordering,library_prefixes,non_constant_identifier_names,prefer_final_fields,return_of_invalid_type,unnecessary_const,unnecessary_import,unnecessary_this,unused_import,unused_shown_name
import 'dart:core' as $core;
import 'package:fixnum/fixnum.dart' as $fixnum;
import 'package:protobuf/protobuf.dart' as $pb;
import '../../../google/protobuf/timestamp.pb.dart' as $2;
import '../../../google/protobuf/duration.pb.dart' as $3;
class ValidatorSigningInfo extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'ValidatorSigningInfo', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'cosmos.slashing.v1beta1'), createEmptyInstance: create)
..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'address')
..aInt64(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'startHeight')
..aInt64(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'indexOffset')
..aOM<$2.Timestamp>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'jailedUntil', subBuilder: $2.Timestamp.create)
..aOB(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'tombstoned')
..aInt64(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'missedBlocksCounter')
..hasRequiredFields = false
;
ValidatorSigningInfo._() : super();
factory ValidatorSigningInfo({
$core.String? address,
$fixnum.Int64? startHeight,
$fixnum.Int64? indexOffset,
$2.Timestamp? jailedUntil,
$core.bool? tombstoned,
$fixnum.Int64? missedBlocksCounter,
}) {
final _result = create();
if (address != null) {
_result.address = address;
}
if (startHeight != null) {
_result.startHeight = startHeight;
}
if (indexOffset != null) {
_result.indexOffset = indexOffset;
}
if (jailedUntil != null) {
_result.jailedUntil = jailedUntil;
}
if (tombstoned != null) {
_result.tombstoned = tombstoned;
}
if (missedBlocksCounter != null) {
_result.missedBlocksCounter = missedBlocksCounter;
}
return _result;
}
factory ValidatorSigningInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory ValidatorSigningInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
ValidatorSigningInfo clone() => ValidatorSigningInfo()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
ValidatorSigningInfo copyWith(void Function(ValidatorSigningInfo) updates) => super.copyWith((message) => updates(message as ValidatorSigningInfo)) as ValidatorSigningInfo; // ignore: deprecated_member_use
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static ValidatorSigningInfo create() => ValidatorSigningInfo._();
ValidatorSigningInfo createEmptyInstance() => create();
static $pb.PbList<ValidatorSigningInfo> createRepeated() => $pb.PbList<ValidatorSigningInfo>();
@$core.pragma('dart2js:noInline')
static ValidatorSigningInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<ValidatorSigningInfo>(create);
static ValidatorSigningInfo? _defaultInstance;
@$pb.TagNumber(1)
$core.String get address => $_getSZ(0);
@$pb.TagNumber(1)
set address($core.String v) { $_setString(0, v); }
@$pb.TagNumber(1)
$core.bool hasAddress() => $_has(0);
@$pb.TagNumber(1)
void clearAddress() => clearField(1);
@$pb.TagNumber(2)
$fixnum.Int64 get startHeight => $_getI64(1);
@$pb.TagNumber(2)
set startHeight($fixnum.Int64 v) { $_setInt64(1, v); }
@$pb.TagNumber(2)
$core.bool hasStartHeight() => $_has(1);
@$pb.TagNumber(2)
void clearStartHeight() => clearField(2);
@$pb.TagNumber(3)
$fixnum.Int64 get indexOffset => $_getI64(2);
@$pb.TagNumber(3)
set indexOffset($fixnum.Int64 v) { $_setInt64(2, v); }
@$pb.TagNumber(3)
$core.bool hasIndexOffset() => $_has(2);
@$pb.TagNumber(3)
void clearIndexOffset() => clearField(3);
@$pb.TagNumber(4)
$2.Timestamp get jailedUntil => $_getN(3);
@$pb.TagNumber(4)
set jailedUntil($2.Timestamp v) { setField(4, v); }
@$pb.TagNumber(4)
$core.bool hasJailedUntil() => $_has(3);
@$pb.TagNumber(4)
void clearJailedUntil() => clearField(4);
@$pb.TagNumber(4)
$2.Timestamp ensureJailedUntil() => $_ensure(3);
@$pb.TagNumber(5)
$core.bool get tombstoned => $_getBF(4);
@$pb.TagNumber(5)
set tombstoned($core.bool v) { $_setBool(4, v); }
@$pb.TagNumber(5)
$core.bool hasTombstoned() => $_has(4);
@$pb.TagNumber(5)
void clearTombstoned() => clearField(5);
@$pb.TagNumber(6)
$fixnum.Int64 get missedBlocksCounter => $_getI64(5);
@$pb.TagNumber(6)
set missedBlocksCounter($fixnum.Int64 v) { $_setInt64(5, v); }
@$pb.TagNumber(6)
$core.bool hasMissedBlocksCounter() => $_has(5);
@$pb.TagNumber(6)
void clearMissedBlocksCounter() => clearField(6);
}
class Params extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Params', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'cosmos.slashing.v1beta1'), createEmptyInstance: create)
..aInt64(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'signedBlocksWindow')
..a<$core.List<$core.int>>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'minSignedPerWindow', $pb.PbFieldType.OY)
..aOM<$3.Duration>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'downtimeJailDuration', subBuilder: $3.Duration.create)
..a<$core.List<$core.int>>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'slashFractionDoubleSign', $pb.PbFieldType.OY)
..a<$core.List<$core.int>>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'slashFractionDowntime', $pb.PbFieldType.OY)
..hasRequiredFields = false
;
Params._() : super();
factory Params({
$fixnum.Int64? signedBlocksWindow,
$core.List<$core.int>? minSignedPerWindow,
$3.Duration? downtimeJailDuration,
$core.List<$core.int>? slashFractionDoubleSign,
$core.List<$core.int>? slashFractionDowntime,
}) {
final _result = create();
if (signedBlocksWindow != null) {
_result.signedBlocksWindow = signedBlocksWindow;
}
if (minSignedPerWindow != null) {
_result.minSignedPerWindow = minSignedPerWindow;
}
if (downtimeJailDuration != null) {
_result.downtimeJailDuration = downtimeJailDuration;
}
if (slashFractionDoubleSign != null) {
_result.slashFractionDoubleSign = slashFractionDoubleSign;
}
if (slashFractionDowntime != null) {
_result.slashFractionDowntime = slashFractionDowntime;
}
return _result;
}
factory Params.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory Params.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
Params clone() => Params()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
Params copyWith(void Function(Params) updates) => super.copyWith((message) => updates(message as Params)) as Params; // ignore: deprecated_member_use
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Params create() => Params._();
Params createEmptyInstance() => create();
static $pb.PbList<Params> createRepeated() => $pb.PbList<Params>();
@$core.pragma('dart2js:noInline')
static Params getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Params>(create);
static Params? _defaultInstance;
@$pb.TagNumber(1)
$fixnum.Int64 get signedBlocksWindow => $_getI64(0);
@$pb.TagNumber(1)
set signedBlocksWindow($fixnum.Int64 v) { $_setInt64(0, v); }
@$pb.TagNumber(1)
$core.bool hasSignedBlocksWindow() => $_has(0);
@$pb.TagNumber(1)
void clearSignedBlocksWindow() => clearField(1);
@$pb.TagNumber(2)
$core.List<$core.int> get minSignedPerWindow => $_getN(1);
@$pb.TagNumber(2)
set minSignedPerWindow($core.List<$core.int> v) { $_setBytes(1, v); }
@$pb.TagNumber(2)
$core.bool hasMinSignedPerWindow() => $_has(1);
@$pb.TagNumber(2)
void clearMinSignedPerWindow() => clearField(2);
@$pb.TagNumber(3)
$3.Duration get downtimeJailDuration => $_getN(2);
@$pb.TagNumber(3)
set downtimeJailDuration($3.Duration v) { setField(3, v); }
@$pb.TagNumber(3)
$core.bool hasDowntimeJailDuration() => $_has(2);
@$pb.TagNumber(3)
void clearDowntimeJailDuration() => clearField(3);
@$pb.TagNumber(3)
$3.Duration ensureDowntimeJailDuration() => $_ensure(2);
@$pb.TagNumber(4)
$core.List<$core.int> get slashFractionDoubleSign => $_getN(3);
@$pb.TagNumber(4)
set slashFractionDoubleSign($core.List<$core.int> v) { $_setBytes(3, v); }
@$pb.TagNumber(4)
$core.bool hasSlashFractionDoubleSign() => $_has(3);
@$pb.TagNumber(4)
void clearSlashFractionDoubleSign() => clearField(4);
@$pb.TagNumber(5)
$core.List<$core.int> get slashFractionDowntime => $_getN(4);
@$pb.TagNumber(5)
set slashFractionDowntime($core.List<$core.int> v) { $_setBytes(4, v); }
@$pb.TagNumber(5)
$core.bool hasSlashFractionDowntime() => $_has(4);
@$pb.TagNumber(5)
void clearSlashFractionDowntime() => clearField(5);
}