@wireio/opp-solidity-models 1.0.6 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -2
- package/contracts/sysio/opp/attestations/Attestations.sol +19 -65
- package/index.d.ts +4 -0
- package/index.d.ts.map +1 -0
- package/index.js +4 -0
- package/index.ts +5 -0
- package/package.json +12 -4
- package/sysio/opp/attestations/attestations.d.ts +311 -0
- package/sysio/opp/attestations/attestations.d.ts.map +1 -0
- package/sysio/opp/attestations/attestations.js +616 -0
- package/sysio/opp/attestations/attestations.ts +826 -0
- package/sysio/opp/opp.d.ts +218 -0
- package/sysio/opp/opp.d.ts.map +1 -0
- package/sysio/opp/opp.js +451 -0
- package/sysio/opp/opp.ts +625 -0
- package/sysio/opp/types/types.d.ts +483 -0
- package/sysio/opp/types/types.d.ts.map +1 -0
- package/sysio/opp/types/types.js +666 -0
- package/sysio/opp/types/types.ts +747 -0
- package/index.mjs +0 -2
|
@@ -0,0 +1,747 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1
|
|
2
|
+
// @generated from protobuf file "sysio/opp/types/types.proto" (package "sysio.opp.types", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
6
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
7
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
8
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
9
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
10
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
11
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
|
+
/**
|
|
14
|
+
* @generated from protobuf message sysio.opp.types.ChainId
|
|
15
|
+
*/
|
|
16
|
+
export interface ChainId {
|
|
17
|
+
/**
|
|
18
|
+
* @generated from protobuf field: sysio.opp.types.ChainKind kind = 1
|
|
19
|
+
*/
|
|
20
|
+
kind: ChainKind;
|
|
21
|
+
/**
|
|
22
|
+
* @generated from protobuf field: uint32 id = 2
|
|
23
|
+
*/
|
|
24
|
+
id: number;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Address on a specific chain.
|
|
28
|
+
*
|
|
29
|
+
* @generated from protobuf message sysio.opp.types.ChainAddress
|
|
30
|
+
*/
|
|
31
|
+
export interface ChainAddress {
|
|
32
|
+
/**
|
|
33
|
+
* @generated from protobuf field: sysio.opp.types.ChainKind kind = 1
|
|
34
|
+
*/
|
|
35
|
+
kind: ChainKind;
|
|
36
|
+
/**
|
|
37
|
+
* @generated from protobuf field: bytes address = 2
|
|
38
|
+
*/
|
|
39
|
+
address: Uint8Array;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* @generated from protobuf message sysio.opp.types.ChainSignature
|
|
43
|
+
*/
|
|
44
|
+
export interface ChainSignature {
|
|
45
|
+
/**
|
|
46
|
+
* @generated from protobuf field: sysio.opp.types.ChainAddress actor = 1
|
|
47
|
+
*/
|
|
48
|
+
actor?: ChainAddress;
|
|
49
|
+
/**
|
|
50
|
+
* @generated from protobuf field: sysio.opp.types.ChainKeyType key_type = 2
|
|
51
|
+
*/
|
|
52
|
+
keyType: ChainKeyType;
|
|
53
|
+
/**
|
|
54
|
+
* @generated from protobuf field: bytes signature = 3
|
|
55
|
+
*/
|
|
56
|
+
signature: Uint8Array;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Token type and signed amount.
|
|
60
|
+
*
|
|
61
|
+
* @generated from protobuf message sysio.opp.types.TokenAmount
|
|
62
|
+
*/
|
|
63
|
+
export interface TokenAmount {
|
|
64
|
+
/**
|
|
65
|
+
* @generated from protobuf field: sysio.opp.types.TokenKind kind = 1
|
|
66
|
+
*/
|
|
67
|
+
kind: TokenKind;
|
|
68
|
+
/**
|
|
69
|
+
* @generated from protobuf field: int64 amount = 2
|
|
70
|
+
*/
|
|
71
|
+
amount: bigint;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Structured representation of encoding_flags_t.
|
|
75
|
+
*
|
|
76
|
+
* @generated from protobuf message sysio.opp.types.EncodingFlags
|
|
77
|
+
*/
|
|
78
|
+
export interface EncodingFlags {
|
|
79
|
+
/**
|
|
80
|
+
* @generated from protobuf field: sysio.opp.types.Endianness endianness = 1
|
|
81
|
+
*/
|
|
82
|
+
endianness: Endianness;
|
|
83
|
+
/**
|
|
84
|
+
* @generated from protobuf field: sysio.opp.types.HashAlgorithm hash_algorithm = 2
|
|
85
|
+
*/
|
|
86
|
+
hashAlgorithm: HashAlgorithm;
|
|
87
|
+
/**
|
|
88
|
+
* @generated from protobuf field: sysio.opp.types.LengthEncoding length_encoding = 3
|
|
89
|
+
*/
|
|
90
|
+
lengthEncoding: LengthEncoding;
|
|
91
|
+
}
|
|
92
|
+
// ---------------------------------------------------------------------------
|
|
93
|
+
// Chain identifier
|
|
94
|
+
// ---------------------------------------------------------------------------
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @generated from protobuf enum sysio.opp.types.ChainKind
|
|
98
|
+
*/
|
|
99
|
+
export enum ChainKind {
|
|
100
|
+
/**
|
|
101
|
+
* @generated from protobuf enum value: CHAIN_KIND_UNKNOWN = 0;
|
|
102
|
+
*/
|
|
103
|
+
UNKNOWN = 0,
|
|
104
|
+
/**
|
|
105
|
+
* @generated from protobuf enum value: CHAIN_KIND_WIRE = 1;
|
|
106
|
+
*/
|
|
107
|
+
WIRE = 1,
|
|
108
|
+
/**
|
|
109
|
+
* @generated from protobuf enum value: CHAIN_KIND_ETHEREUM = 2;
|
|
110
|
+
*/
|
|
111
|
+
ETHEREUM = 2,
|
|
112
|
+
/**
|
|
113
|
+
* @generated from protobuf enum value: CHAIN_KIND_SOLANA = 3;
|
|
114
|
+
*/
|
|
115
|
+
SOLANA = 3,
|
|
116
|
+
/**
|
|
117
|
+
* @generated from protobuf enum value: CHAIN_KIND_SUI = 4;
|
|
118
|
+
*/
|
|
119
|
+
SUI = 4
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* @generated from protobuf enum sysio.opp.types.ChainKeyType
|
|
123
|
+
*/
|
|
124
|
+
export enum ChainKeyType {
|
|
125
|
+
/**
|
|
126
|
+
* @generated from protobuf enum value: CHAIN_KEY_TYPE_UNKNOWN = 0;
|
|
127
|
+
*/
|
|
128
|
+
UNKNOWN = 0,
|
|
129
|
+
/**
|
|
130
|
+
* @generated from protobuf enum value: CHAIN_KEY_TYPE_WIRE = 1;
|
|
131
|
+
*/
|
|
132
|
+
WIRE = 1,
|
|
133
|
+
/**
|
|
134
|
+
* @generated from protobuf enum value: CHAIN_KEY_TYPE_WIRE_BLS = 2;
|
|
135
|
+
*/
|
|
136
|
+
WIRE_BLS = 2,
|
|
137
|
+
/**
|
|
138
|
+
* @generated from protobuf enum value: CHAIN_KEY_TYPE_ETHEREUM = 3;
|
|
139
|
+
*/
|
|
140
|
+
ETHEREUM = 3,
|
|
141
|
+
/**
|
|
142
|
+
* @generated from protobuf enum value: CHAIN_KEY_TYPE_SOLANA = 4;
|
|
143
|
+
*/
|
|
144
|
+
SOLANA = 4,
|
|
145
|
+
/**
|
|
146
|
+
* @generated from protobuf enum value: CHAIN_KEY_TYPE_SUI = 5;
|
|
147
|
+
*/
|
|
148
|
+
SUI = 5
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Token identifier (upper byte encodes chain family).
|
|
152
|
+
*
|
|
153
|
+
* @generated from protobuf enum sysio.opp.types.TokenKind
|
|
154
|
+
*/
|
|
155
|
+
export enum TokenKind {
|
|
156
|
+
/**
|
|
157
|
+
* 0x0000
|
|
158
|
+
*
|
|
159
|
+
* @generated from protobuf enum value: TOKEN_KIND_WIRE = 0;
|
|
160
|
+
*/
|
|
161
|
+
WIRE = 0,
|
|
162
|
+
/**
|
|
163
|
+
* 0x0100
|
|
164
|
+
*
|
|
165
|
+
* @generated from protobuf enum value: TOKEN_KIND_ETH = 256;
|
|
166
|
+
*/
|
|
167
|
+
ETH = 256,
|
|
168
|
+
/**
|
|
169
|
+
* 0x01F0
|
|
170
|
+
*
|
|
171
|
+
* @generated from protobuf enum value: TOKEN_KIND_LIQETH = 496;
|
|
172
|
+
*/
|
|
173
|
+
LIQETH = 496,
|
|
174
|
+
/**
|
|
175
|
+
* 0x0200
|
|
176
|
+
*
|
|
177
|
+
* @generated from protobuf enum value: TOKEN_KIND_SOL = 512;
|
|
178
|
+
*/
|
|
179
|
+
SOL = 512,
|
|
180
|
+
/**
|
|
181
|
+
* 0x02F0
|
|
182
|
+
*
|
|
183
|
+
* @generated from protobuf enum value: TOKEN_KIND_LIQSOL = 752;
|
|
184
|
+
*/
|
|
185
|
+
LIQSOL = 752
|
|
186
|
+
}
|
|
187
|
+
// ---------------------------------------------------------------------------
|
|
188
|
+
// Encoding flags (originally a single uint8 bitfield)
|
|
189
|
+
//
|
|
190
|
+
// Decomposed into discrete fields for protobuf compatibility.
|
|
191
|
+
// Wire-format packing: endianness | (hash_algorithm << 1)
|
|
192
|
+
// | (length_encoding << 3) | reserved
|
|
193
|
+
// ---------------------------------------------------------------------------
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* @generated from protobuf enum sysio.opp.types.Endianness
|
|
197
|
+
*/
|
|
198
|
+
export enum Endianness {
|
|
199
|
+
/**
|
|
200
|
+
* 0x00
|
|
201
|
+
*
|
|
202
|
+
* @generated from protobuf enum value: ENDIANNESS_BIG = 0;
|
|
203
|
+
*/
|
|
204
|
+
BIG = 0,
|
|
205
|
+
/**
|
|
206
|
+
* 0x01
|
|
207
|
+
*
|
|
208
|
+
* @generated from protobuf enum value: ENDIANNESS_LITTLE = 1;
|
|
209
|
+
*/
|
|
210
|
+
LITTLE = 1
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* @generated from protobuf enum sysio.opp.types.HashAlgorithm
|
|
214
|
+
*/
|
|
215
|
+
export enum HashAlgorithm {
|
|
216
|
+
/**
|
|
217
|
+
* bits[2:1] = 00
|
|
218
|
+
*
|
|
219
|
+
* @generated from protobuf enum value: HASH_ALGORITHM_KECCAK256 = 0;
|
|
220
|
+
*/
|
|
221
|
+
KECCAK256 = 0,
|
|
222
|
+
/**
|
|
223
|
+
* bits[2:1] = 01
|
|
224
|
+
*
|
|
225
|
+
* @generated from protobuf enum value: HASH_ALGORITHM_SHA256 = 1;
|
|
226
|
+
*/
|
|
227
|
+
SHA256 = 1,
|
|
228
|
+
/**
|
|
229
|
+
* bits[2:1] = 10
|
|
230
|
+
*
|
|
231
|
+
* @generated from protobuf enum value: HASH_ALGORITHM_RESERVED_1 = 2;
|
|
232
|
+
*/
|
|
233
|
+
RESERVED_1 = 2,
|
|
234
|
+
/**
|
|
235
|
+
* bits[2:1] = 11
|
|
236
|
+
*
|
|
237
|
+
* @generated from protobuf enum value: HASH_ALGORITHM_RESERVED_2 = 3;
|
|
238
|
+
*/
|
|
239
|
+
RESERVED_2 = 3
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* @generated from protobuf enum sysio.opp.types.LengthEncoding
|
|
243
|
+
*/
|
|
244
|
+
export enum LengthEncoding {
|
|
245
|
+
/**
|
|
246
|
+
* bit[3] = 0
|
|
247
|
+
*
|
|
248
|
+
* @generated from protobuf enum value: LENGTH_ENCODING_VARUINT = 0;
|
|
249
|
+
*/
|
|
250
|
+
VARUINT = 0,
|
|
251
|
+
/**
|
|
252
|
+
* bit[3] = 1
|
|
253
|
+
*
|
|
254
|
+
* @generated from protobuf enum value: LENGTH_ENCODING_UINT32 = 1;
|
|
255
|
+
*/
|
|
256
|
+
UINT32 = 1
|
|
257
|
+
}
|
|
258
|
+
// ---------------------------------------------------------------------------
|
|
259
|
+
// Attestation discriminant
|
|
260
|
+
// ---------------------------------------------------------------------------
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* @generated from protobuf enum sysio.opp.types.AttestationType
|
|
264
|
+
*/
|
|
265
|
+
export enum AttestationType {
|
|
266
|
+
/**
|
|
267
|
+
* @generated from protobuf enum value: ATTESTATION_TYPE_UNSPECIFIED = 0;
|
|
268
|
+
*/
|
|
269
|
+
UNSPECIFIED = 0,
|
|
270
|
+
/**
|
|
271
|
+
* 0x0BB9
|
|
272
|
+
*
|
|
273
|
+
* @generated from protobuf enum value: ATTESTATION_TYPE_OPERATOR_ACTION = 2001;
|
|
274
|
+
*/
|
|
275
|
+
OPERATOR_ACTION = 2001,
|
|
276
|
+
/**
|
|
277
|
+
* 0x0BB9
|
|
278
|
+
*
|
|
279
|
+
* @generated from protobuf enum value: ATTESTATION_TYPE_STAKE = 3001;
|
|
280
|
+
*/
|
|
281
|
+
STAKE = 3001,
|
|
282
|
+
/**
|
|
283
|
+
* 0x0BBA
|
|
284
|
+
*
|
|
285
|
+
* @generated from protobuf enum value: ATTESTATION_TYPE_UNSTAKE = 3002;
|
|
286
|
+
*/
|
|
287
|
+
UNSTAKE = 3002,
|
|
288
|
+
/**
|
|
289
|
+
* 0x0BBB
|
|
290
|
+
*
|
|
291
|
+
* @generated from protobuf enum value: ATTESTATION_TYPE_PRETOKEN_PURCHASE = 3004;
|
|
292
|
+
*/
|
|
293
|
+
PRETOKEN_PURCHASE = 3004,
|
|
294
|
+
/**
|
|
295
|
+
* 0x0BBE
|
|
296
|
+
*
|
|
297
|
+
* @generated from protobuf enum value: ATTESTATION_TYPE_PRETOKEN_YIELD = 3006;
|
|
298
|
+
*/
|
|
299
|
+
PRETOKEN_YIELD = 3006,
|
|
300
|
+
/**
|
|
301
|
+
* 0xAA00
|
|
302
|
+
*
|
|
303
|
+
* @generated from protobuf enum value: ATTESTATION_TYPE_RESERVE_BALANCE_SHEET = 43520;
|
|
304
|
+
*/
|
|
305
|
+
RESERVE_BALANCE_SHEET = 43520,
|
|
306
|
+
/**
|
|
307
|
+
* 0xEE00
|
|
308
|
+
*
|
|
309
|
+
* @generated from protobuf enum value: ATTESTATION_TYPE_STAKE_UPDATE = 60928;
|
|
310
|
+
*/
|
|
311
|
+
STAKE_UPDATE = 60928,
|
|
312
|
+
/**
|
|
313
|
+
* 0xEE01
|
|
314
|
+
*
|
|
315
|
+
* @generated from protobuf enum value: ATTESTATION_TYPE_NATIVE_YIELD_REWARD = 60929;
|
|
316
|
+
*/
|
|
317
|
+
NATIVE_YIELD_REWARD = 60929,
|
|
318
|
+
/**
|
|
319
|
+
* 0xEE02
|
|
320
|
+
*
|
|
321
|
+
* @generated from protobuf enum value: ATTESTATION_TYPE_WIRE_TOKEN_PURCHASE = 60930;
|
|
322
|
+
*/
|
|
323
|
+
WIRE_TOKEN_PURCHASE = 60930,
|
|
324
|
+
/**
|
|
325
|
+
* 0xEE03
|
|
326
|
+
*
|
|
327
|
+
* @generated from protobuf enum value: ATTESTATION_TYPE_OPERATOR_REG_DEREG = 60931;
|
|
328
|
+
*/
|
|
329
|
+
OPERATOR_REG_DEREG = 60931,
|
|
330
|
+
/**
|
|
331
|
+
* 0xEE04
|
|
332
|
+
*
|
|
333
|
+
* @generated from protobuf enum value: ATTESTATION_TYPE_CHALLENGE_RESPONSE = 60932;
|
|
334
|
+
*/
|
|
335
|
+
CHALLENGE_RESPONSE = 60932,
|
|
336
|
+
/**
|
|
337
|
+
* 0xEE05
|
|
338
|
+
*
|
|
339
|
+
* @generated from protobuf enum value: ATTESTATION_TYPE_SLASH_OPERATOR = 60933;
|
|
340
|
+
*/
|
|
341
|
+
SLASH_OPERATOR = 60933
|
|
342
|
+
}
|
|
343
|
+
// ---------------------------------------------------------------------------
|
|
344
|
+
// Staker / Operator lifecycle
|
|
345
|
+
// ---------------------------------------------------------------------------
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* @generated from protobuf enum sysio.opp.types.StakeStatus
|
|
349
|
+
*/
|
|
350
|
+
export enum StakeStatus {
|
|
351
|
+
/**
|
|
352
|
+
* @generated from protobuf enum value: STAKE_STATUS_UNKNOWN = 0;
|
|
353
|
+
*/
|
|
354
|
+
UNKNOWN = 0,
|
|
355
|
+
/**
|
|
356
|
+
* 0x01
|
|
357
|
+
*
|
|
358
|
+
* @generated from protobuf enum value: STAKE_STATUS_WARMUP = 1;
|
|
359
|
+
*/
|
|
360
|
+
WARMUP = 1,
|
|
361
|
+
/**
|
|
362
|
+
* 0x02
|
|
363
|
+
*
|
|
364
|
+
* @generated from protobuf enum value: STAKE_STATUS_COOLDOWN = 2;
|
|
365
|
+
*/
|
|
366
|
+
COOLDOWN = 2,
|
|
367
|
+
/**
|
|
368
|
+
* 0x03
|
|
369
|
+
*
|
|
370
|
+
* @generated from protobuf enum value: STAKE_STATUS_ACTIVE = 3;
|
|
371
|
+
*/
|
|
372
|
+
ACTIVE = 3,
|
|
373
|
+
/**
|
|
374
|
+
* 0xF0
|
|
375
|
+
*
|
|
376
|
+
* @generated from protobuf enum value: STAKE_STATUS_TERMINATED = 240;
|
|
377
|
+
*/
|
|
378
|
+
TERMINATED = 240,
|
|
379
|
+
/**
|
|
380
|
+
* 0xF1
|
|
381
|
+
*
|
|
382
|
+
* @generated from protobuf enum value: STAKE_STATUS_SLASHED = 241;
|
|
383
|
+
*/
|
|
384
|
+
SLASHED = 241
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* @generated from protobuf enum sysio.opp.types.OperatorType
|
|
388
|
+
*/
|
|
389
|
+
export enum OperatorType {
|
|
390
|
+
/**
|
|
391
|
+
* @generated from protobuf enum value: OPERATOR_TYPE_UNKNOWN = 0;
|
|
392
|
+
*/
|
|
393
|
+
UNKNOWN = 0,
|
|
394
|
+
/**
|
|
395
|
+
* 0x01
|
|
396
|
+
*
|
|
397
|
+
* @generated from protobuf enum value: OPERATOR_TYPE_PRODUCER = 1;
|
|
398
|
+
*/
|
|
399
|
+
PRODUCER = 1,
|
|
400
|
+
/**
|
|
401
|
+
* 0x02
|
|
402
|
+
*
|
|
403
|
+
* @generated from protobuf enum value: OPERATOR_TYPE_BATCH = 2;
|
|
404
|
+
*/
|
|
405
|
+
BATCH = 2,
|
|
406
|
+
/**
|
|
407
|
+
* 0x03
|
|
408
|
+
*
|
|
409
|
+
* @generated from protobuf enum value: OPERATOR_TYPE_UNDERWRITER = 3;
|
|
410
|
+
*/
|
|
411
|
+
UNDERWRITER = 3,
|
|
412
|
+
/**
|
|
413
|
+
* 0x04
|
|
414
|
+
*
|
|
415
|
+
* @generated from protobuf enum value: OPERATOR_TYPE_CHALLENGER = 4;
|
|
416
|
+
*/
|
|
417
|
+
CHALLENGER = 4
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* @generated from protobuf enum sysio.opp.types.OperatorStatus
|
|
421
|
+
*/
|
|
422
|
+
export enum OperatorStatus {
|
|
423
|
+
/**
|
|
424
|
+
* @generated from protobuf enum value: OPERATOR_STATUS_UNKNOWN = 0;
|
|
425
|
+
*/
|
|
426
|
+
UNKNOWN = 0,
|
|
427
|
+
/**
|
|
428
|
+
* 0x01
|
|
429
|
+
*
|
|
430
|
+
* @generated from protobuf enum value: OPERATOR_STATUS_WARMUP = 1;
|
|
431
|
+
*/
|
|
432
|
+
WARMUP = 1,
|
|
433
|
+
/**
|
|
434
|
+
* 0x02
|
|
435
|
+
*
|
|
436
|
+
* @generated from protobuf enum value: OPERATOR_STATUS_COOLDOWN = 2;
|
|
437
|
+
*/
|
|
438
|
+
COOLDOWN = 2,
|
|
439
|
+
/**
|
|
440
|
+
* 0x03
|
|
441
|
+
*
|
|
442
|
+
* @generated from protobuf enum value: OPERATOR_STATUS_ACTIVE = 3;
|
|
443
|
+
*/
|
|
444
|
+
ACTIVE = 3,
|
|
445
|
+
/**
|
|
446
|
+
* 0xF0
|
|
447
|
+
*
|
|
448
|
+
* @generated from protobuf enum value: OPERATOR_STATUS_TERMINATED = 240;
|
|
449
|
+
*/
|
|
450
|
+
TERMINATED = 240,
|
|
451
|
+
/**
|
|
452
|
+
* 0xF1
|
|
453
|
+
*
|
|
454
|
+
* @generated from protobuf enum value: OPERATOR_STATUS_SLASHED = 241;
|
|
455
|
+
*/
|
|
456
|
+
SLASHED = 241
|
|
457
|
+
}
|
|
458
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
459
|
+
class ChainId$Type extends MessageType<ChainId> {
|
|
460
|
+
constructor() {
|
|
461
|
+
super("sysio.opp.types.ChainId", [
|
|
462
|
+
{ no: 1, name: "kind", kind: "enum", T: () => ["sysio.opp.types.ChainKind", ChainKind, "CHAIN_KIND_"] },
|
|
463
|
+
{ no: 2, name: "id", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
464
|
+
]);
|
|
465
|
+
}
|
|
466
|
+
create(value?: PartialMessage<ChainId>): ChainId {
|
|
467
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
468
|
+
message.kind = 0;
|
|
469
|
+
message.id = 0;
|
|
470
|
+
if (value !== undefined)
|
|
471
|
+
reflectionMergePartial<ChainId>(this, message, value);
|
|
472
|
+
return message;
|
|
473
|
+
}
|
|
474
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ChainId): ChainId {
|
|
475
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
476
|
+
while (reader.pos < end) {
|
|
477
|
+
let [fieldNo, wireType] = reader.tag();
|
|
478
|
+
switch (fieldNo) {
|
|
479
|
+
case /* sysio.opp.types.ChainKind kind */ 1:
|
|
480
|
+
message.kind = reader.int32();
|
|
481
|
+
break;
|
|
482
|
+
case /* uint32 id */ 2:
|
|
483
|
+
message.id = reader.uint32();
|
|
484
|
+
break;
|
|
485
|
+
default:
|
|
486
|
+
let u = options.readUnknownField;
|
|
487
|
+
if (u === "throw")
|
|
488
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
489
|
+
let d = reader.skip(wireType);
|
|
490
|
+
if (u !== false)
|
|
491
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
return message;
|
|
495
|
+
}
|
|
496
|
+
internalBinaryWrite(message: ChainId, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
497
|
+
/* sysio.opp.types.ChainKind kind = 1; */
|
|
498
|
+
if (message.kind !== 0)
|
|
499
|
+
writer.tag(1, WireType.Varint).int32(message.kind);
|
|
500
|
+
/* uint32 id = 2; */
|
|
501
|
+
if (message.id !== 0)
|
|
502
|
+
writer.tag(2, WireType.Varint).uint32(message.id);
|
|
503
|
+
let u = options.writeUnknownFields;
|
|
504
|
+
if (u !== false)
|
|
505
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
506
|
+
return writer;
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
/**
|
|
510
|
+
* @generated MessageType for protobuf message sysio.opp.types.ChainId
|
|
511
|
+
*/
|
|
512
|
+
export const ChainId = new ChainId$Type();
|
|
513
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
514
|
+
class ChainAddress$Type extends MessageType<ChainAddress> {
|
|
515
|
+
constructor() {
|
|
516
|
+
super("sysio.opp.types.ChainAddress", [
|
|
517
|
+
{ no: 1, name: "kind", kind: "enum", T: () => ["sysio.opp.types.ChainKind", ChainKind, "CHAIN_KIND_"] },
|
|
518
|
+
{ no: 2, name: "address", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
519
|
+
]);
|
|
520
|
+
}
|
|
521
|
+
create(value?: PartialMessage<ChainAddress>): ChainAddress {
|
|
522
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
523
|
+
message.kind = 0;
|
|
524
|
+
message.address = new Uint8Array(0);
|
|
525
|
+
if (value !== undefined)
|
|
526
|
+
reflectionMergePartial<ChainAddress>(this, message, value);
|
|
527
|
+
return message;
|
|
528
|
+
}
|
|
529
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ChainAddress): ChainAddress {
|
|
530
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
531
|
+
while (reader.pos < end) {
|
|
532
|
+
let [fieldNo, wireType] = reader.tag();
|
|
533
|
+
switch (fieldNo) {
|
|
534
|
+
case /* sysio.opp.types.ChainKind kind */ 1:
|
|
535
|
+
message.kind = reader.int32();
|
|
536
|
+
break;
|
|
537
|
+
case /* bytes address */ 2:
|
|
538
|
+
message.address = reader.bytes();
|
|
539
|
+
break;
|
|
540
|
+
default:
|
|
541
|
+
let u = options.readUnknownField;
|
|
542
|
+
if (u === "throw")
|
|
543
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
544
|
+
let d = reader.skip(wireType);
|
|
545
|
+
if (u !== false)
|
|
546
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
return message;
|
|
550
|
+
}
|
|
551
|
+
internalBinaryWrite(message: ChainAddress, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
552
|
+
/* sysio.opp.types.ChainKind kind = 1; */
|
|
553
|
+
if (message.kind !== 0)
|
|
554
|
+
writer.tag(1, WireType.Varint).int32(message.kind);
|
|
555
|
+
/* bytes address = 2; */
|
|
556
|
+
if (message.address.length)
|
|
557
|
+
writer.tag(2, WireType.LengthDelimited).bytes(message.address);
|
|
558
|
+
let u = options.writeUnknownFields;
|
|
559
|
+
if (u !== false)
|
|
560
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
561
|
+
return writer;
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
/**
|
|
565
|
+
* @generated MessageType for protobuf message sysio.opp.types.ChainAddress
|
|
566
|
+
*/
|
|
567
|
+
export const ChainAddress = new ChainAddress$Type();
|
|
568
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
569
|
+
class ChainSignature$Type extends MessageType<ChainSignature> {
|
|
570
|
+
constructor() {
|
|
571
|
+
super("sysio.opp.types.ChainSignature", [
|
|
572
|
+
{ no: 1, name: "actor", kind: "message", T: () => ChainAddress },
|
|
573
|
+
{ no: 2, name: "key_type", kind: "enum", T: () => ["sysio.opp.types.ChainKeyType", ChainKeyType, "CHAIN_KEY_TYPE_"] },
|
|
574
|
+
{ no: 3, name: "signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
575
|
+
]);
|
|
576
|
+
}
|
|
577
|
+
create(value?: PartialMessage<ChainSignature>): ChainSignature {
|
|
578
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
579
|
+
message.keyType = 0;
|
|
580
|
+
message.signature = new Uint8Array(0);
|
|
581
|
+
if (value !== undefined)
|
|
582
|
+
reflectionMergePartial<ChainSignature>(this, message, value);
|
|
583
|
+
return message;
|
|
584
|
+
}
|
|
585
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ChainSignature): ChainSignature {
|
|
586
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
587
|
+
while (reader.pos < end) {
|
|
588
|
+
let [fieldNo, wireType] = reader.tag();
|
|
589
|
+
switch (fieldNo) {
|
|
590
|
+
case /* sysio.opp.types.ChainAddress actor */ 1:
|
|
591
|
+
message.actor = ChainAddress.internalBinaryRead(reader, reader.uint32(), options, message.actor);
|
|
592
|
+
break;
|
|
593
|
+
case /* sysio.opp.types.ChainKeyType key_type */ 2:
|
|
594
|
+
message.keyType = reader.int32();
|
|
595
|
+
break;
|
|
596
|
+
case /* bytes signature */ 3:
|
|
597
|
+
message.signature = reader.bytes();
|
|
598
|
+
break;
|
|
599
|
+
default:
|
|
600
|
+
let u = options.readUnknownField;
|
|
601
|
+
if (u === "throw")
|
|
602
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
603
|
+
let d = reader.skip(wireType);
|
|
604
|
+
if (u !== false)
|
|
605
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
return message;
|
|
609
|
+
}
|
|
610
|
+
internalBinaryWrite(message: ChainSignature, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
611
|
+
/* sysio.opp.types.ChainAddress actor = 1; */
|
|
612
|
+
if (message.actor)
|
|
613
|
+
ChainAddress.internalBinaryWrite(message.actor, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
614
|
+
/* sysio.opp.types.ChainKeyType key_type = 2; */
|
|
615
|
+
if (message.keyType !== 0)
|
|
616
|
+
writer.tag(2, WireType.Varint).int32(message.keyType);
|
|
617
|
+
/* bytes signature = 3; */
|
|
618
|
+
if (message.signature.length)
|
|
619
|
+
writer.tag(3, WireType.LengthDelimited).bytes(message.signature);
|
|
620
|
+
let u = options.writeUnknownFields;
|
|
621
|
+
if (u !== false)
|
|
622
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
623
|
+
return writer;
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
/**
|
|
627
|
+
* @generated MessageType for protobuf message sysio.opp.types.ChainSignature
|
|
628
|
+
*/
|
|
629
|
+
export const ChainSignature = new ChainSignature$Type();
|
|
630
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
631
|
+
class TokenAmount$Type extends MessageType<TokenAmount> {
|
|
632
|
+
constructor() {
|
|
633
|
+
super("sysio.opp.types.TokenAmount", [
|
|
634
|
+
{ no: 1, name: "kind", kind: "enum", T: () => ["sysio.opp.types.TokenKind", TokenKind, "TOKEN_KIND_"] },
|
|
635
|
+
{ no: 2, name: "amount", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
636
|
+
]);
|
|
637
|
+
}
|
|
638
|
+
create(value?: PartialMessage<TokenAmount>): TokenAmount {
|
|
639
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
640
|
+
message.kind = 0;
|
|
641
|
+
message.amount = 0n;
|
|
642
|
+
if (value !== undefined)
|
|
643
|
+
reflectionMergePartial<TokenAmount>(this, message, value);
|
|
644
|
+
return message;
|
|
645
|
+
}
|
|
646
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TokenAmount): TokenAmount {
|
|
647
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
648
|
+
while (reader.pos < end) {
|
|
649
|
+
let [fieldNo, wireType] = reader.tag();
|
|
650
|
+
switch (fieldNo) {
|
|
651
|
+
case /* sysio.opp.types.TokenKind kind */ 1:
|
|
652
|
+
message.kind = reader.int32();
|
|
653
|
+
break;
|
|
654
|
+
case /* int64 amount */ 2:
|
|
655
|
+
message.amount = reader.int64().toBigInt();
|
|
656
|
+
break;
|
|
657
|
+
default:
|
|
658
|
+
let u = options.readUnknownField;
|
|
659
|
+
if (u === "throw")
|
|
660
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
661
|
+
let d = reader.skip(wireType);
|
|
662
|
+
if (u !== false)
|
|
663
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
return message;
|
|
667
|
+
}
|
|
668
|
+
internalBinaryWrite(message: TokenAmount, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
669
|
+
/* sysio.opp.types.TokenKind kind = 1; */
|
|
670
|
+
if (message.kind !== 0)
|
|
671
|
+
writer.tag(1, WireType.Varint).int32(message.kind);
|
|
672
|
+
/* int64 amount = 2; */
|
|
673
|
+
if (message.amount !== 0n)
|
|
674
|
+
writer.tag(2, WireType.Varint).int64(message.amount);
|
|
675
|
+
let u = options.writeUnknownFields;
|
|
676
|
+
if (u !== false)
|
|
677
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
678
|
+
return writer;
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
/**
|
|
682
|
+
* @generated MessageType for protobuf message sysio.opp.types.TokenAmount
|
|
683
|
+
*/
|
|
684
|
+
export const TokenAmount = new TokenAmount$Type();
|
|
685
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
686
|
+
class EncodingFlags$Type extends MessageType<EncodingFlags> {
|
|
687
|
+
constructor() {
|
|
688
|
+
super("sysio.opp.types.EncodingFlags", [
|
|
689
|
+
{ no: 1, name: "endianness", kind: "enum", T: () => ["sysio.opp.types.Endianness", Endianness, "ENDIANNESS_"] },
|
|
690
|
+
{ no: 2, name: "hash_algorithm", kind: "enum", T: () => ["sysio.opp.types.HashAlgorithm", HashAlgorithm, "HASH_ALGORITHM_"] },
|
|
691
|
+
{ no: 3, name: "length_encoding", kind: "enum", T: () => ["sysio.opp.types.LengthEncoding", LengthEncoding, "LENGTH_ENCODING_"] }
|
|
692
|
+
]);
|
|
693
|
+
}
|
|
694
|
+
create(value?: PartialMessage<EncodingFlags>): EncodingFlags {
|
|
695
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
696
|
+
message.endianness = 0;
|
|
697
|
+
message.hashAlgorithm = 0;
|
|
698
|
+
message.lengthEncoding = 0;
|
|
699
|
+
if (value !== undefined)
|
|
700
|
+
reflectionMergePartial<EncodingFlags>(this, message, value);
|
|
701
|
+
return message;
|
|
702
|
+
}
|
|
703
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EncodingFlags): EncodingFlags {
|
|
704
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
705
|
+
while (reader.pos < end) {
|
|
706
|
+
let [fieldNo, wireType] = reader.tag();
|
|
707
|
+
switch (fieldNo) {
|
|
708
|
+
case /* sysio.opp.types.Endianness endianness */ 1:
|
|
709
|
+
message.endianness = reader.int32();
|
|
710
|
+
break;
|
|
711
|
+
case /* sysio.opp.types.HashAlgorithm hash_algorithm */ 2:
|
|
712
|
+
message.hashAlgorithm = reader.int32();
|
|
713
|
+
break;
|
|
714
|
+
case /* sysio.opp.types.LengthEncoding length_encoding */ 3:
|
|
715
|
+
message.lengthEncoding = reader.int32();
|
|
716
|
+
break;
|
|
717
|
+
default:
|
|
718
|
+
let u = options.readUnknownField;
|
|
719
|
+
if (u === "throw")
|
|
720
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
721
|
+
let d = reader.skip(wireType);
|
|
722
|
+
if (u !== false)
|
|
723
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
return message;
|
|
727
|
+
}
|
|
728
|
+
internalBinaryWrite(message: EncodingFlags, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
729
|
+
/* sysio.opp.types.Endianness endianness = 1; */
|
|
730
|
+
if (message.endianness !== 0)
|
|
731
|
+
writer.tag(1, WireType.Varint).int32(message.endianness);
|
|
732
|
+
/* sysio.opp.types.HashAlgorithm hash_algorithm = 2; */
|
|
733
|
+
if (message.hashAlgorithm !== 0)
|
|
734
|
+
writer.tag(2, WireType.Varint).int32(message.hashAlgorithm);
|
|
735
|
+
/* sysio.opp.types.LengthEncoding length_encoding = 3; */
|
|
736
|
+
if (message.lengthEncoding !== 0)
|
|
737
|
+
writer.tag(3, WireType.Varint).int32(message.lengthEncoding);
|
|
738
|
+
let u = options.writeUnknownFields;
|
|
739
|
+
if (u !== false)
|
|
740
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
741
|
+
return writer;
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
/**
|
|
745
|
+
* @generated MessageType for protobuf message sysio.opp.types.EncodingFlags
|
|
746
|
+
*/
|
|
747
|
+
export const EncodingFlags = new EncodingFlags$Type();
|