@apibara/starknet 0.1.1 → 0.2.0

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.
Files changed (48) hide show
  1. package/dist/cursor.d.ts +19 -0
  2. package/dist/cursor.js +30 -0
  3. package/dist/cursor.js.map +1 -0
  4. package/dist/felt.d.ts +19 -0
  5. package/dist/felt.js +60 -0
  6. package/dist/felt.js.map +1 -0
  7. package/dist/felt.test.d.ts +1 -0
  8. package/dist/felt.test.js +22 -0
  9. package/dist/felt.test.js.map +1 -0
  10. package/dist/filter.d.ts +285 -0
  11. package/dist/filter.js +490 -0
  12. package/dist/filter.js.map +1 -0
  13. package/dist/filter.test.d.ts +1 -0
  14. package/dist/filter.test.js +54 -0
  15. package/dist/filter.test.js.map +1 -0
  16. package/dist/index.d.ts +4 -1
  17. package/dist/index.js +18 -18
  18. package/dist/index.js.map +1 -1
  19. package/dist/proto/filter.proto +154 -0
  20. package/dist/proto/generated.d.ts +4499 -0
  21. package/dist/proto/generated.js +10973 -0
  22. package/dist/proto/generated.js.map +1 -0
  23. package/dist/proto/index.d.ts +2 -0
  24. package/dist/proto/index.js +7 -0
  25. package/dist/proto/index.js.map +1 -0
  26. package/dist/proto/starknet.proto +220 -86
  27. package/dist/proto/types.proto +13 -0
  28. package/package.json +16 -7
  29. package/src/cursor.ts +26 -0
  30. package/src/felt.test.ts +24 -0
  31. package/src/felt.ts +61 -0
  32. package/src/filter.test.ts +63 -0
  33. package/src/filter.ts +620 -0
  34. package/src/index.ts +4 -18
  35. package/src/proto/filter.proto +154 -0
  36. package/src/proto/generated.d.ts +4499 -0
  37. package/src/proto/generated.js +11684 -0
  38. package/src/proto/index.ts +4 -0
  39. package/src/proto/starknet.proto +220 -86
  40. package/src/proto/types.proto +13 -0
  41. package/dist/proto/google/protobuf/timestamp.d.ts +0 -132
  42. package/dist/proto/google/protobuf/timestamp.js +0 -92
  43. package/dist/proto/google/protobuf/timestamp.js.map +0 -1
  44. package/dist/proto/starknet.d.ts +0 -1428
  45. package/dist/proto/starknet.js +0 -1506
  46. package/dist/proto/starknet.js.map +0 -1
  47. package/src/proto/google/protobuf/timestamp.ts +0 -216
  48. package/src/proto/starknet.ts +0 -1725
@@ -0,0 +1,4499 @@
1
+ import * as $protobuf from "protobufjs";
2
+ import Long = require("long");
3
+ /** Namespace apibara. */
4
+ export namespace apibara {
5
+
6
+ /** Namespace starknet. */
7
+ namespace starknet {
8
+
9
+ /** Namespace v1alpha2. */
10
+ namespace v1alpha2 {
11
+
12
+ /** Properties of a Filter. */
13
+ interface IFilter {
14
+
15
+ /** Filter header */
16
+ header?: (apibara.starknet.v1alpha2.IHeaderFilter|null);
17
+
18
+ /** Filter transactions */
19
+ transactions?: (apibara.starknet.v1alpha2.ITransactionFilter[]|null);
20
+
21
+ /** Filter stateUpdate */
22
+ stateUpdate?: (apibara.starknet.v1alpha2.IStateUpdateFilter|null);
23
+
24
+ /** Filter events */
25
+ events?: (apibara.starknet.v1alpha2.IEventFilter[]|null);
26
+
27
+ /** Filter messages */
28
+ messages?: (apibara.starknet.v1alpha2.IL2ToL1MessageFilter[]|null);
29
+ }
30
+
31
+ /** Represents a Filter. */
32
+ class Filter implements IFilter {
33
+
34
+ /**
35
+ * Constructs a new Filter.
36
+ * @param [properties] Properties to set
37
+ */
38
+ constructor(properties?: apibara.starknet.v1alpha2.IFilter);
39
+
40
+ /** Filter header. */
41
+ public header?: (apibara.starknet.v1alpha2.IHeaderFilter|null);
42
+
43
+ /** Filter transactions. */
44
+ public transactions: apibara.starknet.v1alpha2.ITransactionFilter[];
45
+
46
+ /** Filter stateUpdate. */
47
+ public stateUpdate?: (apibara.starknet.v1alpha2.IStateUpdateFilter|null);
48
+
49
+ /** Filter events. */
50
+ public events: apibara.starknet.v1alpha2.IEventFilter[];
51
+
52
+ /** Filter messages. */
53
+ public messages: apibara.starknet.v1alpha2.IL2ToL1MessageFilter[];
54
+
55
+ /**
56
+ * Creates a new Filter instance using the specified properties.
57
+ * @param [properties] Properties to set
58
+ * @returns Filter instance
59
+ */
60
+ public static create(properties?: apibara.starknet.v1alpha2.IFilter): apibara.starknet.v1alpha2.Filter;
61
+
62
+ /**
63
+ * Encodes the specified Filter message. Does not implicitly {@link apibara.starknet.v1alpha2.Filter.verify|verify} messages.
64
+ * @param message Filter message or plain object to encode
65
+ * @param [writer] Writer to encode to
66
+ * @returns Writer
67
+ */
68
+ public static encode(message: apibara.starknet.v1alpha2.IFilter, writer?: $protobuf.Writer): $protobuf.Writer;
69
+
70
+ /**
71
+ * Encodes the specified Filter message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.Filter.verify|verify} messages.
72
+ * @param message Filter message or plain object to encode
73
+ * @param [writer] Writer to encode to
74
+ * @returns Writer
75
+ */
76
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IFilter, writer?: $protobuf.Writer): $protobuf.Writer;
77
+
78
+ /**
79
+ * Decodes a Filter message from the specified reader or buffer.
80
+ * @param reader Reader or buffer to decode from
81
+ * @param [length] Message length if known beforehand
82
+ * @returns Filter
83
+ * @throws {Error} If the payload is not a reader or valid buffer
84
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
85
+ */
86
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.Filter;
87
+
88
+ /**
89
+ * Decodes a Filter message from the specified reader or buffer, length delimited.
90
+ * @param reader Reader or buffer to decode from
91
+ * @returns Filter
92
+ * @throws {Error} If the payload is not a reader or valid buffer
93
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
94
+ */
95
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.Filter;
96
+
97
+ /**
98
+ * Verifies a Filter message.
99
+ * @param message Plain object to verify
100
+ * @returns `null` if valid, otherwise the reason why it is not
101
+ */
102
+ public static verify(message: { [k: string]: any }): (string|null);
103
+
104
+ /**
105
+ * Creates a Filter message from a plain object. Also converts values to their respective internal types.
106
+ * @param object Plain object
107
+ * @returns Filter
108
+ */
109
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.Filter;
110
+
111
+ /**
112
+ * Creates a plain object from a Filter message. Also converts values to other types if specified.
113
+ * @param message Filter
114
+ * @param [options] Conversion options
115
+ * @returns Plain object
116
+ */
117
+ public static toObject(message: apibara.starknet.v1alpha2.Filter, options?: $protobuf.IConversionOptions): { [k: string]: any };
118
+
119
+ /**
120
+ * Converts this Filter to JSON.
121
+ * @returns JSON object
122
+ */
123
+ public toJSON(): { [k: string]: any };
124
+
125
+ /**
126
+ * Gets the default type url for Filter
127
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
128
+ * @returns The default type url
129
+ */
130
+ public static getTypeUrl(typeUrlPrefix?: string): string;
131
+ }
132
+
133
+ /** Properties of a HeaderFilter. */
134
+ interface IHeaderFilter {
135
+ }
136
+
137
+ /** Represents a HeaderFilter. */
138
+ class HeaderFilter implements IHeaderFilter {
139
+
140
+ /**
141
+ * Constructs a new HeaderFilter.
142
+ * @param [properties] Properties to set
143
+ */
144
+ constructor(properties?: apibara.starknet.v1alpha2.IHeaderFilter);
145
+
146
+ /**
147
+ * Creates a new HeaderFilter instance using the specified properties.
148
+ * @param [properties] Properties to set
149
+ * @returns HeaderFilter instance
150
+ */
151
+ public static create(properties?: apibara.starknet.v1alpha2.IHeaderFilter): apibara.starknet.v1alpha2.HeaderFilter;
152
+
153
+ /**
154
+ * Encodes the specified HeaderFilter message. Does not implicitly {@link apibara.starknet.v1alpha2.HeaderFilter.verify|verify} messages.
155
+ * @param message HeaderFilter message or plain object to encode
156
+ * @param [writer] Writer to encode to
157
+ * @returns Writer
158
+ */
159
+ public static encode(message: apibara.starknet.v1alpha2.IHeaderFilter, writer?: $protobuf.Writer): $protobuf.Writer;
160
+
161
+ /**
162
+ * Encodes the specified HeaderFilter message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.HeaderFilter.verify|verify} messages.
163
+ * @param message HeaderFilter message or plain object to encode
164
+ * @param [writer] Writer to encode to
165
+ * @returns Writer
166
+ */
167
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IHeaderFilter, writer?: $protobuf.Writer): $protobuf.Writer;
168
+
169
+ /**
170
+ * Decodes a HeaderFilter message from the specified reader or buffer.
171
+ * @param reader Reader or buffer to decode from
172
+ * @param [length] Message length if known beforehand
173
+ * @returns HeaderFilter
174
+ * @throws {Error} If the payload is not a reader or valid buffer
175
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
176
+ */
177
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.HeaderFilter;
178
+
179
+ /**
180
+ * Decodes a HeaderFilter message from the specified reader or buffer, length delimited.
181
+ * @param reader Reader or buffer to decode from
182
+ * @returns HeaderFilter
183
+ * @throws {Error} If the payload is not a reader or valid buffer
184
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
185
+ */
186
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.HeaderFilter;
187
+
188
+ /**
189
+ * Verifies a HeaderFilter message.
190
+ * @param message Plain object to verify
191
+ * @returns `null` if valid, otherwise the reason why it is not
192
+ */
193
+ public static verify(message: { [k: string]: any }): (string|null);
194
+
195
+ /**
196
+ * Creates a HeaderFilter message from a plain object. Also converts values to their respective internal types.
197
+ * @param object Plain object
198
+ * @returns HeaderFilter
199
+ */
200
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.HeaderFilter;
201
+
202
+ /**
203
+ * Creates a plain object from a HeaderFilter message. Also converts values to other types if specified.
204
+ * @param message HeaderFilter
205
+ * @param [options] Conversion options
206
+ * @returns Plain object
207
+ */
208
+ public static toObject(message: apibara.starknet.v1alpha2.HeaderFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
209
+
210
+ /**
211
+ * Converts this HeaderFilter to JSON.
212
+ * @returns JSON object
213
+ */
214
+ public toJSON(): { [k: string]: any };
215
+
216
+ /**
217
+ * Gets the default type url for HeaderFilter
218
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
219
+ * @returns The default type url
220
+ */
221
+ public static getTypeUrl(typeUrlPrefix?: string): string;
222
+ }
223
+
224
+ /** Properties of a TransactionFilter. */
225
+ interface ITransactionFilter {
226
+
227
+ /** TransactionFilter invokeV0 */
228
+ invokeV0?: (apibara.starknet.v1alpha2.IInvokeTransactionV0Filter|null);
229
+
230
+ /** TransactionFilter invokeV1 */
231
+ invokeV1?: (apibara.starknet.v1alpha2.IInvokeTransactionV1Filter|null);
232
+
233
+ /** TransactionFilter deploy */
234
+ deploy?: (apibara.starknet.v1alpha2.IDeployTransactionFilter|null);
235
+
236
+ /** TransactionFilter declare */
237
+ declare?: (apibara.starknet.v1alpha2.IDeclareTransactionFilter|null);
238
+
239
+ /** TransactionFilter l1Handler */
240
+ l1Handler?: (apibara.starknet.v1alpha2.IL1HandlerTransactionFilter|null);
241
+
242
+ /** TransactionFilter deployAccount */
243
+ deployAccount?: (apibara.starknet.v1alpha2.IDeployAccountTransactionFilter|null);
244
+ }
245
+
246
+ /** Represents a TransactionFilter. */
247
+ class TransactionFilter implements ITransactionFilter {
248
+
249
+ /**
250
+ * Constructs a new TransactionFilter.
251
+ * @param [properties] Properties to set
252
+ */
253
+ constructor(properties?: apibara.starknet.v1alpha2.ITransactionFilter);
254
+
255
+ /** TransactionFilter invokeV0. */
256
+ public invokeV0?: (apibara.starknet.v1alpha2.IInvokeTransactionV0Filter|null);
257
+
258
+ /** TransactionFilter invokeV1. */
259
+ public invokeV1?: (apibara.starknet.v1alpha2.IInvokeTransactionV1Filter|null);
260
+
261
+ /** TransactionFilter deploy. */
262
+ public deploy?: (apibara.starknet.v1alpha2.IDeployTransactionFilter|null);
263
+
264
+ /** TransactionFilter declare. */
265
+ public declare?: (apibara.starknet.v1alpha2.IDeclareTransactionFilter|null);
266
+
267
+ /** TransactionFilter l1Handler. */
268
+ public l1Handler?: (apibara.starknet.v1alpha2.IL1HandlerTransactionFilter|null);
269
+
270
+ /** TransactionFilter deployAccount. */
271
+ public deployAccount?: (apibara.starknet.v1alpha2.IDeployAccountTransactionFilter|null);
272
+
273
+ /** TransactionFilter filter. */
274
+ public filter?: ("invokeV0"|"invokeV1"|"deploy"|"declare"|"l1Handler"|"deployAccount");
275
+
276
+ /**
277
+ * Creates a new TransactionFilter instance using the specified properties.
278
+ * @param [properties] Properties to set
279
+ * @returns TransactionFilter instance
280
+ */
281
+ public static create(properties?: apibara.starknet.v1alpha2.ITransactionFilter): apibara.starknet.v1alpha2.TransactionFilter;
282
+
283
+ /**
284
+ * Encodes the specified TransactionFilter message. Does not implicitly {@link apibara.starknet.v1alpha2.TransactionFilter.verify|verify} messages.
285
+ * @param message TransactionFilter message or plain object to encode
286
+ * @param [writer] Writer to encode to
287
+ * @returns Writer
288
+ */
289
+ public static encode(message: apibara.starknet.v1alpha2.ITransactionFilter, writer?: $protobuf.Writer): $protobuf.Writer;
290
+
291
+ /**
292
+ * Encodes the specified TransactionFilter message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.TransactionFilter.verify|verify} messages.
293
+ * @param message TransactionFilter message or plain object to encode
294
+ * @param [writer] Writer to encode to
295
+ * @returns Writer
296
+ */
297
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.ITransactionFilter, writer?: $protobuf.Writer): $protobuf.Writer;
298
+
299
+ /**
300
+ * Decodes a TransactionFilter message from the specified reader or buffer.
301
+ * @param reader Reader or buffer to decode from
302
+ * @param [length] Message length if known beforehand
303
+ * @returns TransactionFilter
304
+ * @throws {Error} If the payload is not a reader or valid buffer
305
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
306
+ */
307
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.TransactionFilter;
308
+
309
+ /**
310
+ * Decodes a TransactionFilter message from the specified reader or buffer, length delimited.
311
+ * @param reader Reader or buffer to decode from
312
+ * @returns TransactionFilter
313
+ * @throws {Error} If the payload is not a reader or valid buffer
314
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
315
+ */
316
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.TransactionFilter;
317
+
318
+ /**
319
+ * Verifies a TransactionFilter message.
320
+ * @param message Plain object to verify
321
+ * @returns `null` if valid, otherwise the reason why it is not
322
+ */
323
+ public static verify(message: { [k: string]: any }): (string|null);
324
+
325
+ /**
326
+ * Creates a TransactionFilter message from a plain object. Also converts values to their respective internal types.
327
+ * @param object Plain object
328
+ * @returns TransactionFilter
329
+ */
330
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.TransactionFilter;
331
+
332
+ /**
333
+ * Creates a plain object from a TransactionFilter message. Also converts values to other types if specified.
334
+ * @param message TransactionFilter
335
+ * @param [options] Conversion options
336
+ * @returns Plain object
337
+ */
338
+ public static toObject(message: apibara.starknet.v1alpha2.TransactionFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
339
+
340
+ /**
341
+ * Converts this TransactionFilter to JSON.
342
+ * @returns JSON object
343
+ */
344
+ public toJSON(): { [k: string]: any };
345
+
346
+ /**
347
+ * Gets the default type url for TransactionFilter
348
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
349
+ * @returns The default type url
350
+ */
351
+ public static getTypeUrl(typeUrlPrefix?: string): string;
352
+ }
353
+
354
+ /** Properties of an InvokeTransactionV0Filter. */
355
+ interface IInvokeTransactionV0Filter {
356
+
357
+ /** InvokeTransactionV0Filter contractAddress */
358
+ contractAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
359
+
360
+ /** InvokeTransactionV0Filter entryPointSelector */
361
+ entryPointSelector?: (apibara.starknet.v1alpha2.IFieldElement|null);
362
+
363
+ /** InvokeTransactionV0Filter calldata */
364
+ calldata?: (apibara.starknet.v1alpha2.IFieldElement[]|null);
365
+ }
366
+
367
+ /** Represents an InvokeTransactionV0Filter. */
368
+ class InvokeTransactionV0Filter implements IInvokeTransactionV0Filter {
369
+
370
+ /**
371
+ * Constructs a new InvokeTransactionV0Filter.
372
+ * @param [properties] Properties to set
373
+ */
374
+ constructor(properties?: apibara.starknet.v1alpha2.IInvokeTransactionV0Filter);
375
+
376
+ /** InvokeTransactionV0Filter contractAddress. */
377
+ public contractAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
378
+
379
+ /** InvokeTransactionV0Filter entryPointSelector. */
380
+ public entryPointSelector?: (apibara.starknet.v1alpha2.IFieldElement|null);
381
+
382
+ /** InvokeTransactionV0Filter calldata. */
383
+ public calldata: apibara.starknet.v1alpha2.IFieldElement[];
384
+
385
+ /**
386
+ * Creates a new InvokeTransactionV0Filter instance using the specified properties.
387
+ * @param [properties] Properties to set
388
+ * @returns InvokeTransactionV0Filter instance
389
+ */
390
+ public static create(properties?: apibara.starknet.v1alpha2.IInvokeTransactionV0Filter): apibara.starknet.v1alpha2.InvokeTransactionV0Filter;
391
+
392
+ /**
393
+ * Encodes the specified InvokeTransactionV0Filter message. Does not implicitly {@link apibara.starknet.v1alpha2.InvokeTransactionV0Filter.verify|verify} messages.
394
+ * @param message InvokeTransactionV0Filter message or plain object to encode
395
+ * @param [writer] Writer to encode to
396
+ * @returns Writer
397
+ */
398
+ public static encode(message: apibara.starknet.v1alpha2.IInvokeTransactionV0Filter, writer?: $protobuf.Writer): $protobuf.Writer;
399
+
400
+ /**
401
+ * Encodes the specified InvokeTransactionV0Filter message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.InvokeTransactionV0Filter.verify|verify} messages.
402
+ * @param message InvokeTransactionV0Filter message or plain object to encode
403
+ * @param [writer] Writer to encode to
404
+ * @returns Writer
405
+ */
406
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IInvokeTransactionV0Filter, writer?: $protobuf.Writer): $protobuf.Writer;
407
+
408
+ /**
409
+ * Decodes an InvokeTransactionV0Filter message from the specified reader or buffer.
410
+ * @param reader Reader or buffer to decode from
411
+ * @param [length] Message length if known beforehand
412
+ * @returns InvokeTransactionV0Filter
413
+ * @throws {Error} If the payload is not a reader or valid buffer
414
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
415
+ */
416
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.InvokeTransactionV0Filter;
417
+
418
+ /**
419
+ * Decodes an InvokeTransactionV0Filter message from the specified reader or buffer, length delimited.
420
+ * @param reader Reader or buffer to decode from
421
+ * @returns InvokeTransactionV0Filter
422
+ * @throws {Error} If the payload is not a reader or valid buffer
423
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
424
+ */
425
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.InvokeTransactionV0Filter;
426
+
427
+ /**
428
+ * Verifies an InvokeTransactionV0Filter message.
429
+ * @param message Plain object to verify
430
+ * @returns `null` if valid, otherwise the reason why it is not
431
+ */
432
+ public static verify(message: { [k: string]: any }): (string|null);
433
+
434
+ /**
435
+ * Creates an InvokeTransactionV0Filter message from a plain object. Also converts values to their respective internal types.
436
+ * @param object Plain object
437
+ * @returns InvokeTransactionV0Filter
438
+ */
439
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.InvokeTransactionV0Filter;
440
+
441
+ /**
442
+ * Creates a plain object from an InvokeTransactionV0Filter message. Also converts values to other types if specified.
443
+ * @param message InvokeTransactionV0Filter
444
+ * @param [options] Conversion options
445
+ * @returns Plain object
446
+ */
447
+ public static toObject(message: apibara.starknet.v1alpha2.InvokeTransactionV0Filter, options?: $protobuf.IConversionOptions): { [k: string]: any };
448
+
449
+ /**
450
+ * Converts this InvokeTransactionV0Filter to JSON.
451
+ * @returns JSON object
452
+ */
453
+ public toJSON(): { [k: string]: any };
454
+
455
+ /**
456
+ * Gets the default type url for InvokeTransactionV0Filter
457
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
458
+ * @returns The default type url
459
+ */
460
+ public static getTypeUrl(typeUrlPrefix?: string): string;
461
+ }
462
+
463
+ /** Properties of an InvokeTransactionV1Filter. */
464
+ interface IInvokeTransactionV1Filter {
465
+
466
+ /** InvokeTransactionV1Filter senderAddress */
467
+ senderAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
468
+
469
+ /** InvokeTransactionV1Filter calldata */
470
+ calldata?: (apibara.starknet.v1alpha2.IFieldElement[]|null);
471
+ }
472
+
473
+ /** Represents an InvokeTransactionV1Filter. */
474
+ class InvokeTransactionV1Filter implements IInvokeTransactionV1Filter {
475
+
476
+ /**
477
+ * Constructs a new InvokeTransactionV1Filter.
478
+ * @param [properties] Properties to set
479
+ */
480
+ constructor(properties?: apibara.starknet.v1alpha2.IInvokeTransactionV1Filter);
481
+
482
+ /** InvokeTransactionV1Filter senderAddress. */
483
+ public senderAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
484
+
485
+ /** InvokeTransactionV1Filter calldata. */
486
+ public calldata: apibara.starknet.v1alpha2.IFieldElement[];
487
+
488
+ /**
489
+ * Creates a new InvokeTransactionV1Filter instance using the specified properties.
490
+ * @param [properties] Properties to set
491
+ * @returns InvokeTransactionV1Filter instance
492
+ */
493
+ public static create(properties?: apibara.starknet.v1alpha2.IInvokeTransactionV1Filter): apibara.starknet.v1alpha2.InvokeTransactionV1Filter;
494
+
495
+ /**
496
+ * Encodes the specified InvokeTransactionV1Filter message. Does not implicitly {@link apibara.starknet.v1alpha2.InvokeTransactionV1Filter.verify|verify} messages.
497
+ * @param message InvokeTransactionV1Filter message or plain object to encode
498
+ * @param [writer] Writer to encode to
499
+ * @returns Writer
500
+ */
501
+ public static encode(message: apibara.starknet.v1alpha2.IInvokeTransactionV1Filter, writer?: $protobuf.Writer): $protobuf.Writer;
502
+
503
+ /**
504
+ * Encodes the specified InvokeTransactionV1Filter message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.InvokeTransactionV1Filter.verify|verify} messages.
505
+ * @param message InvokeTransactionV1Filter message or plain object to encode
506
+ * @param [writer] Writer to encode to
507
+ * @returns Writer
508
+ */
509
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IInvokeTransactionV1Filter, writer?: $protobuf.Writer): $protobuf.Writer;
510
+
511
+ /**
512
+ * Decodes an InvokeTransactionV1Filter message from the specified reader or buffer.
513
+ * @param reader Reader or buffer to decode from
514
+ * @param [length] Message length if known beforehand
515
+ * @returns InvokeTransactionV1Filter
516
+ * @throws {Error} If the payload is not a reader or valid buffer
517
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
518
+ */
519
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.InvokeTransactionV1Filter;
520
+
521
+ /**
522
+ * Decodes an InvokeTransactionV1Filter message from the specified reader or buffer, length delimited.
523
+ * @param reader Reader or buffer to decode from
524
+ * @returns InvokeTransactionV1Filter
525
+ * @throws {Error} If the payload is not a reader or valid buffer
526
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
527
+ */
528
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.InvokeTransactionV1Filter;
529
+
530
+ /**
531
+ * Verifies an InvokeTransactionV1Filter message.
532
+ * @param message Plain object to verify
533
+ * @returns `null` if valid, otherwise the reason why it is not
534
+ */
535
+ public static verify(message: { [k: string]: any }): (string|null);
536
+
537
+ /**
538
+ * Creates an InvokeTransactionV1Filter message from a plain object. Also converts values to their respective internal types.
539
+ * @param object Plain object
540
+ * @returns InvokeTransactionV1Filter
541
+ */
542
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.InvokeTransactionV1Filter;
543
+
544
+ /**
545
+ * Creates a plain object from an InvokeTransactionV1Filter message. Also converts values to other types if specified.
546
+ * @param message InvokeTransactionV1Filter
547
+ * @param [options] Conversion options
548
+ * @returns Plain object
549
+ */
550
+ public static toObject(message: apibara.starknet.v1alpha2.InvokeTransactionV1Filter, options?: $protobuf.IConversionOptions): { [k: string]: any };
551
+
552
+ /**
553
+ * Converts this InvokeTransactionV1Filter to JSON.
554
+ * @returns JSON object
555
+ */
556
+ public toJSON(): { [k: string]: any };
557
+
558
+ /**
559
+ * Gets the default type url for InvokeTransactionV1Filter
560
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
561
+ * @returns The default type url
562
+ */
563
+ public static getTypeUrl(typeUrlPrefix?: string): string;
564
+ }
565
+
566
+ /** Properties of a DeployTransactionFilter. */
567
+ interface IDeployTransactionFilter {
568
+
569
+ /** DeployTransactionFilter contractAddressSalt */
570
+ contractAddressSalt?: (apibara.starknet.v1alpha2.IFieldElement|null);
571
+
572
+ /** DeployTransactionFilter classHash */
573
+ classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
574
+
575
+ /** DeployTransactionFilter constructorCalldata */
576
+ constructorCalldata?: (apibara.starknet.v1alpha2.IFieldElement[]|null);
577
+ }
578
+
579
+ /** Represents a DeployTransactionFilter. */
580
+ class DeployTransactionFilter implements IDeployTransactionFilter {
581
+
582
+ /**
583
+ * Constructs a new DeployTransactionFilter.
584
+ * @param [properties] Properties to set
585
+ */
586
+ constructor(properties?: apibara.starknet.v1alpha2.IDeployTransactionFilter);
587
+
588
+ /** DeployTransactionFilter contractAddressSalt. */
589
+ public contractAddressSalt?: (apibara.starknet.v1alpha2.IFieldElement|null);
590
+
591
+ /** DeployTransactionFilter classHash. */
592
+ public classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
593
+
594
+ /** DeployTransactionFilter constructorCalldata. */
595
+ public constructorCalldata: apibara.starknet.v1alpha2.IFieldElement[];
596
+
597
+ /**
598
+ * Creates a new DeployTransactionFilter instance using the specified properties.
599
+ * @param [properties] Properties to set
600
+ * @returns DeployTransactionFilter instance
601
+ */
602
+ public static create(properties?: apibara.starknet.v1alpha2.IDeployTransactionFilter): apibara.starknet.v1alpha2.DeployTransactionFilter;
603
+
604
+ /**
605
+ * Encodes the specified DeployTransactionFilter message. Does not implicitly {@link apibara.starknet.v1alpha2.DeployTransactionFilter.verify|verify} messages.
606
+ * @param message DeployTransactionFilter message or plain object to encode
607
+ * @param [writer] Writer to encode to
608
+ * @returns Writer
609
+ */
610
+ public static encode(message: apibara.starknet.v1alpha2.IDeployTransactionFilter, writer?: $protobuf.Writer): $protobuf.Writer;
611
+
612
+ /**
613
+ * Encodes the specified DeployTransactionFilter message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.DeployTransactionFilter.verify|verify} messages.
614
+ * @param message DeployTransactionFilter message or plain object to encode
615
+ * @param [writer] Writer to encode to
616
+ * @returns Writer
617
+ */
618
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IDeployTransactionFilter, writer?: $protobuf.Writer): $protobuf.Writer;
619
+
620
+ /**
621
+ * Decodes a DeployTransactionFilter message from the specified reader or buffer.
622
+ * @param reader Reader or buffer to decode from
623
+ * @param [length] Message length if known beforehand
624
+ * @returns DeployTransactionFilter
625
+ * @throws {Error} If the payload is not a reader or valid buffer
626
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
627
+ */
628
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.DeployTransactionFilter;
629
+
630
+ /**
631
+ * Decodes a DeployTransactionFilter message from the specified reader or buffer, length delimited.
632
+ * @param reader Reader or buffer to decode from
633
+ * @returns DeployTransactionFilter
634
+ * @throws {Error} If the payload is not a reader or valid buffer
635
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
636
+ */
637
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.DeployTransactionFilter;
638
+
639
+ /**
640
+ * Verifies a DeployTransactionFilter message.
641
+ * @param message Plain object to verify
642
+ * @returns `null` if valid, otherwise the reason why it is not
643
+ */
644
+ public static verify(message: { [k: string]: any }): (string|null);
645
+
646
+ /**
647
+ * Creates a DeployTransactionFilter message from a plain object. Also converts values to their respective internal types.
648
+ * @param object Plain object
649
+ * @returns DeployTransactionFilter
650
+ */
651
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.DeployTransactionFilter;
652
+
653
+ /**
654
+ * Creates a plain object from a DeployTransactionFilter message. Also converts values to other types if specified.
655
+ * @param message DeployTransactionFilter
656
+ * @param [options] Conversion options
657
+ * @returns Plain object
658
+ */
659
+ public static toObject(message: apibara.starknet.v1alpha2.DeployTransactionFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
660
+
661
+ /**
662
+ * Converts this DeployTransactionFilter to JSON.
663
+ * @returns JSON object
664
+ */
665
+ public toJSON(): { [k: string]: any };
666
+
667
+ /**
668
+ * Gets the default type url for DeployTransactionFilter
669
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
670
+ * @returns The default type url
671
+ */
672
+ public static getTypeUrl(typeUrlPrefix?: string): string;
673
+ }
674
+
675
+ /** Properties of a DeclareTransactionFilter. */
676
+ interface IDeclareTransactionFilter {
677
+
678
+ /** DeclareTransactionFilter classHash */
679
+ classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
680
+
681
+ /** DeclareTransactionFilter senderAddress */
682
+ senderAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
683
+ }
684
+
685
+ /** Represents a DeclareTransactionFilter. */
686
+ class DeclareTransactionFilter implements IDeclareTransactionFilter {
687
+
688
+ /**
689
+ * Constructs a new DeclareTransactionFilter.
690
+ * @param [properties] Properties to set
691
+ */
692
+ constructor(properties?: apibara.starknet.v1alpha2.IDeclareTransactionFilter);
693
+
694
+ /** DeclareTransactionFilter classHash. */
695
+ public classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
696
+
697
+ /** DeclareTransactionFilter senderAddress. */
698
+ public senderAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
699
+
700
+ /**
701
+ * Creates a new DeclareTransactionFilter instance using the specified properties.
702
+ * @param [properties] Properties to set
703
+ * @returns DeclareTransactionFilter instance
704
+ */
705
+ public static create(properties?: apibara.starknet.v1alpha2.IDeclareTransactionFilter): apibara.starknet.v1alpha2.DeclareTransactionFilter;
706
+
707
+ /**
708
+ * Encodes the specified DeclareTransactionFilter message. Does not implicitly {@link apibara.starknet.v1alpha2.DeclareTransactionFilter.verify|verify} messages.
709
+ * @param message DeclareTransactionFilter message or plain object to encode
710
+ * @param [writer] Writer to encode to
711
+ * @returns Writer
712
+ */
713
+ public static encode(message: apibara.starknet.v1alpha2.IDeclareTransactionFilter, writer?: $protobuf.Writer): $protobuf.Writer;
714
+
715
+ /**
716
+ * Encodes the specified DeclareTransactionFilter message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.DeclareTransactionFilter.verify|verify} messages.
717
+ * @param message DeclareTransactionFilter message or plain object to encode
718
+ * @param [writer] Writer to encode to
719
+ * @returns Writer
720
+ */
721
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IDeclareTransactionFilter, writer?: $protobuf.Writer): $protobuf.Writer;
722
+
723
+ /**
724
+ * Decodes a DeclareTransactionFilter message from the specified reader or buffer.
725
+ * @param reader Reader or buffer to decode from
726
+ * @param [length] Message length if known beforehand
727
+ * @returns DeclareTransactionFilter
728
+ * @throws {Error} If the payload is not a reader or valid buffer
729
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
730
+ */
731
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.DeclareTransactionFilter;
732
+
733
+ /**
734
+ * Decodes a DeclareTransactionFilter message from the specified reader or buffer, length delimited.
735
+ * @param reader Reader or buffer to decode from
736
+ * @returns DeclareTransactionFilter
737
+ * @throws {Error} If the payload is not a reader or valid buffer
738
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
739
+ */
740
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.DeclareTransactionFilter;
741
+
742
+ /**
743
+ * Verifies a DeclareTransactionFilter message.
744
+ * @param message Plain object to verify
745
+ * @returns `null` if valid, otherwise the reason why it is not
746
+ */
747
+ public static verify(message: { [k: string]: any }): (string|null);
748
+
749
+ /**
750
+ * Creates a DeclareTransactionFilter message from a plain object. Also converts values to their respective internal types.
751
+ * @param object Plain object
752
+ * @returns DeclareTransactionFilter
753
+ */
754
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.DeclareTransactionFilter;
755
+
756
+ /**
757
+ * Creates a plain object from a DeclareTransactionFilter message. Also converts values to other types if specified.
758
+ * @param message DeclareTransactionFilter
759
+ * @param [options] Conversion options
760
+ * @returns Plain object
761
+ */
762
+ public static toObject(message: apibara.starknet.v1alpha2.DeclareTransactionFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
763
+
764
+ /**
765
+ * Converts this DeclareTransactionFilter to JSON.
766
+ * @returns JSON object
767
+ */
768
+ public toJSON(): { [k: string]: any };
769
+
770
+ /**
771
+ * Gets the default type url for DeclareTransactionFilter
772
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
773
+ * @returns The default type url
774
+ */
775
+ public static getTypeUrl(typeUrlPrefix?: string): string;
776
+ }
777
+
778
+ /** Properties of a L1HandlerTransactionFilter. */
779
+ interface IL1HandlerTransactionFilter {
780
+
781
+ /** L1HandlerTransactionFilter contractAddress */
782
+ contractAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
783
+
784
+ /** L1HandlerTransactionFilter entryPointSelector */
785
+ entryPointSelector?: (apibara.starknet.v1alpha2.IFieldElement|null);
786
+
787
+ /** L1HandlerTransactionFilter calldata */
788
+ calldata?: (apibara.starknet.v1alpha2.IFieldElement[]|null);
789
+ }
790
+
791
+ /** Represents a L1HandlerTransactionFilter. */
792
+ class L1HandlerTransactionFilter implements IL1HandlerTransactionFilter {
793
+
794
+ /**
795
+ * Constructs a new L1HandlerTransactionFilter.
796
+ * @param [properties] Properties to set
797
+ */
798
+ constructor(properties?: apibara.starknet.v1alpha2.IL1HandlerTransactionFilter);
799
+
800
+ /** L1HandlerTransactionFilter contractAddress. */
801
+ public contractAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
802
+
803
+ /** L1HandlerTransactionFilter entryPointSelector. */
804
+ public entryPointSelector?: (apibara.starknet.v1alpha2.IFieldElement|null);
805
+
806
+ /** L1HandlerTransactionFilter calldata. */
807
+ public calldata: apibara.starknet.v1alpha2.IFieldElement[];
808
+
809
+ /**
810
+ * Creates a new L1HandlerTransactionFilter instance using the specified properties.
811
+ * @param [properties] Properties to set
812
+ * @returns L1HandlerTransactionFilter instance
813
+ */
814
+ public static create(properties?: apibara.starknet.v1alpha2.IL1HandlerTransactionFilter): apibara.starknet.v1alpha2.L1HandlerTransactionFilter;
815
+
816
+ /**
817
+ * Encodes the specified L1HandlerTransactionFilter message. Does not implicitly {@link apibara.starknet.v1alpha2.L1HandlerTransactionFilter.verify|verify} messages.
818
+ * @param message L1HandlerTransactionFilter message or plain object to encode
819
+ * @param [writer] Writer to encode to
820
+ * @returns Writer
821
+ */
822
+ public static encode(message: apibara.starknet.v1alpha2.IL1HandlerTransactionFilter, writer?: $protobuf.Writer): $protobuf.Writer;
823
+
824
+ /**
825
+ * Encodes the specified L1HandlerTransactionFilter message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.L1HandlerTransactionFilter.verify|verify} messages.
826
+ * @param message L1HandlerTransactionFilter message or plain object to encode
827
+ * @param [writer] Writer to encode to
828
+ * @returns Writer
829
+ */
830
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IL1HandlerTransactionFilter, writer?: $protobuf.Writer): $protobuf.Writer;
831
+
832
+ /**
833
+ * Decodes a L1HandlerTransactionFilter message from the specified reader or buffer.
834
+ * @param reader Reader or buffer to decode from
835
+ * @param [length] Message length if known beforehand
836
+ * @returns L1HandlerTransactionFilter
837
+ * @throws {Error} If the payload is not a reader or valid buffer
838
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
839
+ */
840
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.L1HandlerTransactionFilter;
841
+
842
+ /**
843
+ * Decodes a L1HandlerTransactionFilter message from the specified reader or buffer, length delimited.
844
+ * @param reader Reader or buffer to decode from
845
+ * @returns L1HandlerTransactionFilter
846
+ * @throws {Error} If the payload is not a reader or valid buffer
847
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
848
+ */
849
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.L1HandlerTransactionFilter;
850
+
851
+ /**
852
+ * Verifies a L1HandlerTransactionFilter message.
853
+ * @param message Plain object to verify
854
+ * @returns `null` if valid, otherwise the reason why it is not
855
+ */
856
+ public static verify(message: { [k: string]: any }): (string|null);
857
+
858
+ /**
859
+ * Creates a L1HandlerTransactionFilter message from a plain object. Also converts values to their respective internal types.
860
+ * @param object Plain object
861
+ * @returns L1HandlerTransactionFilter
862
+ */
863
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.L1HandlerTransactionFilter;
864
+
865
+ /**
866
+ * Creates a plain object from a L1HandlerTransactionFilter message. Also converts values to other types if specified.
867
+ * @param message L1HandlerTransactionFilter
868
+ * @param [options] Conversion options
869
+ * @returns Plain object
870
+ */
871
+ public static toObject(message: apibara.starknet.v1alpha2.L1HandlerTransactionFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
872
+
873
+ /**
874
+ * Converts this L1HandlerTransactionFilter to JSON.
875
+ * @returns JSON object
876
+ */
877
+ public toJSON(): { [k: string]: any };
878
+
879
+ /**
880
+ * Gets the default type url for L1HandlerTransactionFilter
881
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
882
+ * @returns The default type url
883
+ */
884
+ public static getTypeUrl(typeUrlPrefix?: string): string;
885
+ }
886
+
887
+ /** Properties of a DeployAccountTransactionFilter. */
888
+ interface IDeployAccountTransactionFilter {
889
+
890
+ /** DeployAccountTransactionFilter contractAddressSalt */
891
+ contractAddressSalt?: (apibara.starknet.v1alpha2.IFieldElement|null);
892
+
893
+ /** DeployAccountTransactionFilter classHash */
894
+ classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
895
+
896
+ /** DeployAccountTransactionFilter constructorCalldata */
897
+ constructorCalldata?: (apibara.starknet.v1alpha2.IFieldElement[]|null);
898
+ }
899
+
900
+ /** Represents a DeployAccountTransactionFilter. */
901
+ class DeployAccountTransactionFilter implements IDeployAccountTransactionFilter {
902
+
903
+ /**
904
+ * Constructs a new DeployAccountTransactionFilter.
905
+ * @param [properties] Properties to set
906
+ */
907
+ constructor(properties?: apibara.starknet.v1alpha2.IDeployAccountTransactionFilter);
908
+
909
+ /** DeployAccountTransactionFilter contractAddressSalt. */
910
+ public contractAddressSalt?: (apibara.starknet.v1alpha2.IFieldElement|null);
911
+
912
+ /** DeployAccountTransactionFilter classHash. */
913
+ public classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
914
+
915
+ /** DeployAccountTransactionFilter constructorCalldata. */
916
+ public constructorCalldata: apibara.starknet.v1alpha2.IFieldElement[];
917
+
918
+ /**
919
+ * Creates a new DeployAccountTransactionFilter instance using the specified properties.
920
+ * @param [properties] Properties to set
921
+ * @returns DeployAccountTransactionFilter instance
922
+ */
923
+ public static create(properties?: apibara.starknet.v1alpha2.IDeployAccountTransactionFilter): apibara.starknet.v1alpha2.DeployAccountTransactionFilter;
924
+
925
+ /**
926
+ * Encodes the specified DeployAccountTransactionFilter message. Does not implicitly {@link apibara.starknet.v1alpha2.DeployAccountTransactionFilter.verify|verify} messages.
927
+ * @param message DeployAccountTransactionFilter message or plain object to encode
928
+ * @param [writer] Writer to encode to
929
+ * @returns Writer
930
+ */
931
+ public static encode(message: apibara.starknet.v1alpha2.IDeployAccountTransactionFilter, writer?: $protobuf.Writer): $protobuf.Writer;
932
+
933
+ /**
934
+ * Encodes the specified DeployAccountTransactionFilter message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.DeployAccountTransactionFilter.verify|verify} messages.
935
+ * @param message DeployAccountTransactionFilter message or plain object to encode
936
+ * @param [writer] Writer to encode to
937
+ * @returns Writer
938
+ */
939
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IDeployAccountTransactionFilter, writer?: $protobuf.Writer): $protobuf.Writer;
940
+
941
+ /**
942
+ * Decodes a DeployAccountTransactionFilter message from the specified reader or buffer.
943
+ * @param reader Reader or buffer to decode from
944
+ * @param [length] Message length if known beforehand
945
+ * @returns DeployAccountTransactionFilter
946
+ * @throws {Error} If the payload is not a reader or valid buffer
947
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
948
+ */
949
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.DeployAccountTransactionFilter;
950
+
951
+ /**
952
+ * Decodes a DeployAccountTransactionFilter message from the specified reader or buffer, length delimited.
953
+ * @param reader Reader or buffer to decode from
954
+ * @returns DeployAccountTransactionFilter
955
+ * @throws {Error} If the payload is not a reader or valid buffer
956
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
957
+ */
958
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.DeployAccountTransactionFilter;
959
+
960
+ /**
961
+ * Verifies a DeployAccountTransactionFilter message.
962
+ * @param message Plain object to verify
963
+ * @returns `null` if valid, otherwise the reason why it is not
964
+ */
965
+ public static verify(message: { [k: string]: any }): (string|null);
966
+
967
+ /**
968
+ * Creates a DeployAccountTransactionFilter message from a plain object. Also converts values to their respective internal types.
969
+ * @param object Plain object
970
+ * @returns DeployAccountTransactionFilter
971
+ */
972
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.DeployAccountTransactionFilter;
973
+
974
+ /**
975
+ * Creates a plain object from a DeployAccountTransactionFilter message. Also converts values to other types if specified.
976
+ * @param message DeployAccountTransactionFilter
977
+ * @param [options] Conversion options
978
+ * @returns Plain object
979
+ */
980
+ public static toObject(message: apibara.starknet.v1alpha2.DeployAccountTransactionFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
981
+
982
+ /**
983
+ * Converts this DeployAccountTransactionFilter to JSON.
984
+ * @returns JSON object
985
+ */
986
+ public toJSON(): { [k: string]: any };
987
+
988
+ /**
989
+ * Gets the default type url for DeployAccountTransactionFilter
990
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
991
+ * @returns The default type url
992
+ */
993
+ public static getTypeUrl(typeUrlPrefix?: string): string;
994
+ }
995
+
996
+ /** Properties of a L2ToL1MessageFilter. */
997
+ interface IL2ToL1MessageFilter {
998
+
999
+ /** L2ToL1MessageFilter toAddress */
1000
+ toAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
1001
+
1002
+ /** L2ToL1MessageFilter payload */
1003
+ payload?: (apibara.starknet.v1alpha2.IFieldElement[]|null);
1004
+ }
1005
+
1006
+ /** Represents a L2ToL1MessageFilter. */
1007
+ class L2ToL1MessageFilter implements IL2ToL1MessageFilter {
1008
+
1009
+ /**
1010
+ * Constructs a new L2ToL1MessageFilter.
1011
+ * @param [properties] Properties to set
1012
+ */
1013
+ constructor(properties?: apibara.starknet.v1alpha2.IL2ToL1MessageFilter);
1014
+
1015
+ /** L2ToL1MessageFilter toAddress. */
1016
+ public toAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
1017
+
1018
+ /** L2ToL1MessageFilter payload. */
1019
+ public payload: apibara.starknet.v1alpha2.IFieldElement[];
1020
+
1021
+ /**
1022
+ * Creates a new L2ToL1MessageFilter instance using the specified properties.
1023
+ * @param [properties] Properties to set
1024
+ * @returns L2ToL1MessageFilter instance
1025
+ */
1026
+ public static create(properties?: apibara.starknet.v1alpha2.IL2ToL1MessageFilter): apibara.starknet.v1alpha2.L2ToL1MessageFilter;
1027
+
1028
+ /**
1029
+ * Encodes the specified L2ToL1MessageFilter message. Does not implicitly {@link apibara.starknet.v1alpha2.L2ToL1MessageFilter.verify|verify} messages.
1030
+ * @param message L2ToL1MessageFilter message or plain object to encode
1031
+ * @param [writer] Writer to encode to
1032
+ * @returns Writer
1033
+ */
1034
+ public static encode(message: apibara.starknet.v1alpha2.IL2ToL1MessageFilter, writer?: $protobuf.Writer): $protobuf.Writer;
1035
+
1036
+ /**
1037
+ * Encodes the specified L2ToL1MessageFilter message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.L2ToL1MessageFilter.verify|verify} messages.
1038
+ * @param message L2ToL1MessageFilter message or plain object to encode
1039
+ * @param [writer] Writer to encode to
1040
+ * @returns Writer
1041
+ */
1042
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IL2ToL1MessageFilter, writer?: $protobuf.Writer): $protobuf.Writer;
1043
+
1044
+ /**
1045
+ * Decodes a L2ToL1MessageFilter message from the specified reader or buffer.
1046
+ * @param reader Reader or buffer to decode from
1047
+ * @param [length] Message length if known beforehand
1048
+ * @returns L2ToL1MessageFilter
1049
+ * @throws {Error} If the payload is not a reader or valid buffer
1050
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1051
+ */
1052
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.L2ToL1MessageFilter;
1053
+
1054
+ /**
1055
+ * Decodes a L2ToL1MessageFilter message from the specified reader or buffer, length delimited.
1056
+ * @param reader Reader or buffer to decode from
1057
+ * @returns L2ToL1MessageFilter
1058
+ * @throws {Error} If the payload is not a reader or valid buffer
1059
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1060
+ */
1061
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.L2ToL1MessageFilter;
1062
+
1063
+ /**
1064
+ * Verifies a L2ToL1MessageFilter message.
1065
+ * @param message Plain object to verify
1066
+ * @returns `null` if valid, otherwise the reason why it is not
1067
+ */
1068
+ public static verify(message: { [k: string]: any }): (string|null);
1069
+
1070
+ /**
1071
+ * Creates a L2ToL1MessageFilter message from a plain object. Also converts values to their respective internal types.
1072
+ * @param object Plain object
1073
+ * @returns L2ToL1MessageFilter
1074
+ */
1075
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.L2ToL1MessageFilter;
1076
+
1077
+ /**
1078
+ * Creates a plain object from a L2ToL1MessageFilter message. Also converts values to other types if specified.
1079
+ * @param message L2ToL1MessageFilter
1080
+ * @param [options] Conversion options
1081
+ * @returns Plain object
1082
+ */
1083
+ public static toObject(message: apibara.starknet.v1alpha2.L2ToL1MessageFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
1084
+
1085
+ /**
1086
+ * Converts this L2ToL1MessageFilter to JSON.
1087
+ * @returns JSON object
1088
+ */
1089
+ public toJSON(): { [k: string]: any };
1090
+
1091
+ /**
1092
+ * Gets the default type url for L2ToL1MessageFilter
1093
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1094
+ * @returns The default type url
1095
+ */
1096
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1097
+ }
1098
+
1099
+ /** Properties of an EventFilter. */
1100
+ interface IEventFilter {
1101
+
1102
+ /** EventFilter fromAddress */
1103
+ fromAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
1104
+
1105
+ /** EventFilter keys */
1106
+ keys?: (apibara.starknet.v1alpha2.IFieldElement[]|null);
1107
+
1108
+ /** EventFilter data */
1109
+ data?: (apibara.starknet.v1alpha2.IFieldElement[]|null);
1110
+ }
1111
+
1112
+ /** Represents an EventFilter. */
1113
+ class EventFilter implements IEventFilter {
1114
+
1115
+ /**
1116
+ * Constructs a new EventFilter.
1117
+ * @param [properties] Properties to set
1118
+ */
1119
+ constructor(properties?: apibara.starknet.v1alpha2.IEventFilter);
1120
+
1121
+ /** EventFilter fromAddress. */
1122
+ public fromAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
1123
+
1124
+ /** EventFilter keys. */
1125
+ public keys: apibara.starknet.v1alpha2.IFieldElement[];
1126
+
1127
+ /** EventFilter data. */
1128
+ public data: apibara.starknet.v1alpha2.IFieldElement[];
1129
+
1130
+ /**
1131
+ * Creates a new EventFilter instance using the specified properties.
1132
+ * @param [properties] Properties to set
1133
+ * @returns EventFilter instance
1134
+ */
1135
+ public static create(properties?: apibara.starknet.v1alpha2.IEventFilter): apibara.starknet.v1alpha2.EventFilter;
1136
+
1137
+ /**
1138
+ * Encodes the specified EventFilter message. Does not implicitly {@link apibara.starknet.v1alpha2.EventFilter.verify|verify} messages.
1139
+ * @param message EventFilter message or plain object to encode
1140
+ * @param [writer] Writer to encode to
1141
+ * @returns Writer
1142
+ */
1143
+ public static encode(message: apibara.starknet.v1alpha2.IEventFilter, writer?: $protobuf.Writer): $protobuf.Writer;
1144
+
1145
+ /**
1146
+ * Encodes the specified EventFilter message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.EventFilter.verify|verify} messages.
1147
+ * @param message EventFilter message or plain object to encode
1148
+ * @param [writer] Writer to encode to
1149
+ * @returns Writer
1150
+ */
1151
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IEventFilter, writer?: $protobuf.Writer): $protobuf.Writer;
1152
+
1153
+ /**
1154
+ * Decodes an EventFilter message from the specified reader or buffer.
1155
+ * @param reader Reader or buffer to decode from
1156
+ * @param [length] Message length if known beforehand
1157
+ * @returns EventFilter
1158
+ * @throws {Error} If the payload is not a reader or valid buffer
1159
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1160
+ */
1161
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.EventFilter;
1162
+
1163
+ /**
1164
+ * Decodes an EventFilter message from the specified reader or buffer, length delimited.
1165
+ * @param reader Reader or buffer to decode from
1166
+ * @returns EventFilter
1167
+ * @throws {Error} If the payload is not a reader or valid buffer
1168
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1169
+ */
1170
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.EventFilter;
1171
+
1172
+ /**
1173
+ * Verifies an EventFilter message.
1174
+ * @param message Plain object to verify
1175
+ * @returns `null` if valid, otherwise the reason why it is not
1176
+ */
1177
+ public static verify(message: { [k: string]: any }): (string|null);
1178
+
1179
+ /**
1180
+ * Creates an EventFilter message from a plain object. Also converts values to their respective internal types.
1181
+ * @param object Plain object
1182
+ * @returns EventFilter
1183
+ */
1184
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.EventFilter;
1185
+
1186
+ /**
1187
+ * Creates a plain object from an EventFilter message. Also converts values to other types if specified.
1188
+ * @param message EventFilter
1189
+ * @param [options] Conversion options
1190
+ * @returns Plain object
1191
+ */
1192
+ public static toObject(message: apibara.starknet.v1alpha2.EventFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
1193
+
1194
+ /**
1195
+ * Converts this EventFilter to JSON.
1196
+ * @returns JSON object
1197
+ */
1198
+ public toJSON(): { [k: string]: any };
1199
+
1200
+ /**
1201
+ * Gets the default type url for EventFilter
1202
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1203
+ * @returns The default type url
1204
+ */
1205
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1206
+ }
1207
+
1208
+ /** Properties of a StateUpdateFilter. */
1209
+ interface IStateUpdateFilter {
1210
+
1211
+ /** StateUpdateFilter storageDiffs */
1212
+ storageDiffs?: (apibara.starknet.v1alpha2.IStorageDiffFilter[]|null);
1213
+
1214
+ /** StateUpdateFilter declaredContracts */
1215
+ declaredContracts?: (apibara.starknet.v1alpha2.IDeclaredContractFilter[]|null);
1216
+
1217
+ /** StateUpdateFilter deployedContracts */
1218
+ deployedContracts?: (apibara.starknet.v1alpha2.IDeployedContractFilter[]|null);
1219
+
1220
+ /** StateUpdateFilter nonces */
1221
+ nonces?: (apibara.starknet.v1alpha2.INonceUpdateFilter[]|null);
1222
+ }
1223
+
1224
+ /** Represents a StateUpdateFilter. */
1225
+ class StateUpdateFilter implements IStateUpdateFilter {
1226
+
1227
+ /**
1228
+ * Constructs a new StateUpdateFilter.
1229
+ * @param [properties] Properties to set
1230
+ */
1231
+ constructor(properties?: apibara.starknet.v1alpha2.IStateUpdateFilter);
1232
+
1233
+ /** StateUpdateFilter storageDiffs. */
1234
+ public storageDiffs: apibara.starknet.v1alpha2.IStorageDiffFilter[];
1235
+
1236
+ /** StateUpdateFilter declaredContracts. */
1237
+ public declaredContracts: apibara.starknet.v1alpha2.IDeclaredContractFilter[];
1238
+
1239
+ /** StateUpdateFilter deployedContracts. */
1240
+ public deployedContracts: apibara.starknet.v1alpha2.IDeployedContractFilter[];
1241
+
1242
+ /** StateUpdateFilter nonces. */
1243
+ public nonces: apibara.starknet.v1alpha2.INonceUpdateFilter[];
1244
+
1245
+ /**
1246
+ * Creates a new StateUpdateFilter instance using the specified properties.
1247
+ * @param [properties] Properties to set
1248
+ * @returns StateUpdateFilter instance
1249
+ */
1250
+ public static create(properties?: apibara.starknet.v1alpha2.IStateUpdateFilter): apibara.starknet.v1alpha2.StateUpdateFilter;
1251
+
1252
+ /**
1253
+ * Encodes the specified StateUpdateFilter message. Does not implicitly {@link apibara.starknet.v1alpha2.StateUpdateFilter.verify|verify} messages.
1254
+ * @param message StateUpdateFilter message or plain object to encode
1255
+ * @param [writer] Writer to encode to
1256
+ * @returns Writer
1257
+ */
1258
+ public static encode(message: apibara.starknet.v1alpha2.IStateUpdateFilter, writer?: $protobuf.Writer): $protobuf.Writer;
1259
+
1260
+ /**
1261
+ * Encodes the specified StateUpdateFilter message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.StateUpdateFilter.verify|verify} messages.
1262
+ * @param message StateUpdateFilter message or plain object to encode
1263
+ * @param [writer] Writer to encode to
1264
+ * @returns Writer
1265
+ */
1266
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IStateUpdateFilter, writer?: $protobuf.Writer): $protobuf.Writer;
1267
+
1268
+ /**
1269
+ * Decodes a StateUpdateFilter message from the specified reader or buffer.
1270
+ * @param reader Reader or buffer to decode from
1271
+ * @param [length] Message length if known beforehand
1272
+ * @returns StateUpdateFilter
1273
+ * @throws {Error} If the payload is not a reader or valid buffer
1274
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1275
+ */
1276
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.StateUpdateFilter;
1277
+
1278
+ /**
1279
+ * Decodes a StateUpdateFilter message from the specified reader or buffer, length delimited.
1280
+ * @param reader Reader or buffer to decode from
1281
+ * @returns StateUpdateFilter
1282
+ * @throws {Error} If the payload is not a reader or valid buffer
1283
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1284
+ */
1285
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.StateUpdateFilter;
1286
+
1287
+ /**
1288
+ * Verifies a StateUpdateFilter message.
1289
+ * @param message Plain object to verify
1290
+ * @returns `null` if valid, otherwise the reason why it is not
1291
+ */
1292
+ public static verify(message: { [k: string]: any }): (string|null);
1293
+
1294
+ /**
1295
+ * Creates a StateUpdateFilter message from a plain object. Also converts values to their respective internal types.
1296
+ * @param object Plain object
1297
+ * @returns StateUpdateFilter
1298
+ */
1299
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.StateUpdateFilter;
1300
+
1301
+ /**
1302
+ * Creates a plain object from a StateUpdateFilter message. Also converts values to other types if specified.
1303
+ * @param message StateUpdateFilter
1304
+ * @param [options] Conversion options
1305
+ * @returns Plain object
1306
+ */
1307
+ public static toObject(message: apibara.starknet.v1alpha2.StateUpdateFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
1308
+
1309
+ /**
1310
+ * Converts this StateUpdateFilter to JSON.
1311
+ * @returns JSON object
1312
+ */
1313
+ public toJSON(): { [k: string]: any };
1314
+
1315
+ /**
1316
+ * Gets the default type url for StateUpdateFilter
1317
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1318
+ * @returns The default type url
1319
+ */
1320
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1321
+ }
1322
+
1323
+ /** Properties of a StorageDiffFilter. */
1324
+ interface IStorageDiffFilter {
1325
+
1326
+ /** StorageDiffFilter contractAddress */
1327
+ contractAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
1328
+ }
1329
+
1330
+ /** Represents a StorageDiffFilter. */
1331
+ class StorageDiffFilter implements IStorageDiffFilter {
1332
+
1333
+ /**
1334
+ * Constructs a new StorageDiffFilter.
1335
+ * @param [properties] Properties to set
1336
+ */
1337
+ constructor(properties?: apibara.starknet.v1alpha2.IStorageDiffFilter);
1338
+
1339
+ /** StorageDiffFilter contractAddress. */
1340
+ public contractAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
1341
+
1342
+ /**
1343
+ * Creates a new StorageDiffFilter instance using the specified properties.
1344
+ * @param [properties] Properties to set
1345
+ * @returns StorageDiffFilter instance
1346
+ */
1347
+ public static create(properties?: apibara.starknet.v1alpha2.IStorageDiffFilter): apibara.starknet.v1alpha2.StorageDiffFilter;
1348
+
1349
+ /**
1350
+ * Encodes the specified StorageDiffFilter message. Does not implicitly {@link apibara.starknet.v1alpha2.StorageDiffFilter.verify|verify} messages.
1351
+ * @param message StorageDiffFilter message or plain object to encode
1352
+ * @param [writer] Writer to encode to
1353
+ * @returns Writer
1354
+ */
1355
+ public static encode(message: apibara.starknet.v1alpha2.IStorageDiffFilter, writer?: $protobuf.Writer): $protobuf.Writer;
1356
+
1357
+ /**
1358
+ * Encodes the specified StorageDiffFilter message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.StorageDiffFilter.verify|verify} messages.
1359
+ * @param message StorageDiffFilter message or plain object to encode
1360
+ * @param [writer] Writer to encode to
1361
+ * @returns Writer
1362
+ */
1363
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IStorageDiffFilter, writer?: $protobuf.Writer): $protobuf.Writer;
1364
+
1365
+ /**
1366
+ * Decodes a StorageDiffFilter message from the specified reader or buffer.
1367
+ * @param reader Reader or buffer to decode from
1368
+ * @param [length] Message length if known beforehand
1369
+ * @returns StorageDiffFilter
1370
+ * @throws {Error} If the payload is not a reader or valid buffer
1371
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1372
+ */
1373
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.StorageDiffFilter;
1374
+
1375
+ /**
1376
+ * Decodes a StorageDiffFilter message from the specified reader or buffer, length delimited.
1377
+ * @param reader Reader or buffer to decode from
1378
+ * @returns StorageDiffFilter
1379
+ * @throws {Error} If the payload is not a reader or valid buffer
1380
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1381
+ */
1382
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.StorageDiffFilter;
1383
+
1384
+ /**
1385
+ * Verifies a StorageDiffFilter message.
1386
+ * @param message Plain object to verify
1387
+ * @returns `null` if valid, otherwise the reason why it is not
1388
+ */
1389
+ public static verify(message: { [k: string]: any }): (string|null);
1390
+
1391
+ /**
1392
+ * Creates a StorageDiffFilter message from a plain object. Also converts values to their respective internal types.
1393
+ * @param object Plain object
1394
+ * @returns StorageDiffFilter
1395
+ */
1396
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.StorageDiffFilter;
1397
+
1398
+ /**
1399
+ * Creates a plain object from a StorageDiffFilter message. Also converts values to other types if specified.
1400
+ * @param message StorageDiffFilter
1401
+ * @param [options] Conversion options
1402
+ * @returns Plain object
1403
+ */
1404
+ public static toObject(message: apibara.starknet.v1alpha2.StorageDiffFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
1405
+
1406
+ /**
1407
+ * Converts this StorageDiffFilter to JSON.
1408
+ * @returns JSON object
1409
+ */
1410
+ public toJSON(): { [k: string]: any };
1411
+
1412
+ /**
1413
+ * Gets the default type url for StorageDiffFilter
1414
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1415
+ * @returns The default type url
1416
+ */
1417
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1418
+ }
1419
+
1420
+ /** Properties of a DeclaredContractFilter. */
1421
+ interface IDeclaredContractFilter {
1422
+
1423
+ /** DeclaredContractFilter classHash */
1424
+ classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
1425
+ }
1426
+
1427
+ /** Represents a DeclaredContractFilter. */
1428
+ class DeclaredContractFilter implements IDeclaredContractFilter {
1429
+
1430
+ /**
1431
+ * Constructs a new DeclaredContractFilter.
1432
+ * @param [properties] Properties to set
1433
+ */
1434
+ constructor(properties?: apibara.starknet.v1alpha2.IDeclaredContractFilter);
1435
+
1436
+ /** DeclaredContractFilter classHash. */
1437
+ public classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
1438
+
1439
+ /**
1440
+ * Creates a new DeclaredContractFilter instance using the specified properties.
1441
+ * @param [properties] Properties to set
1442
+ * @returns DeclaredContractFilter instance
1443
+ */
1444
+ public static create(properties?: apibara.starknet.v1alpha2.IDeclaredContractFilter): apibara.starknet.v1alpha2.DeclaredContractFilter;
1445
+
1446
+ /**
1447
+ * Encodes the specified DeclaredContractFilter message. Does not implicitly {@link apibara.starknet.v1alpha2.DeclaredContractFilter.verify|verify} messages.
1448
+ * @param message DeclaredContractFilter message or plain object to encode
1449
+ * @param [writer] Writer to encode to
1450
+ * @returns Writer
1451
+ */
1452
+ public static encode(message: apibara.starknet.v1alpha2.IDeclaredContractFilter, writer?: $protobuf.Writer): $protobuf.Writer;
1453
+
1454
+ /**
1455
+ * Encodes the specified DeclaredContractFilter message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.DeclaredContractFilter.verify|verify} messages.
1456
+ * @param message DeclaredContractFilter message or plain object to encode
1457
+ * @param [writer] Writer to encode to
1458
+ * @returns Writer
1459
+ */
1460
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IDeclaredContractFilter, writer?: $protobuf.Writer): $protobuf.Writer;
1461
+
1462
+ /**
1463
+ * Decodes a DeclaredContractFilter message from the specified reader or buffer.
1464
+ * @param reader Reader or buffer to decode from
1465
+ * @param [length] Message length if known beforehand
1466
+ * @returns DeclaredContractFilter
1467
+ * @throws {Error} If the payload is not a reader or valid buffer
1468
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1469
+ */
1470
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.DeclaredContractFilter;
1471
+
1472
+ /**
1473
+ * Decodes a DeclaredContractFilter message from the specified reader or buffer, length delimited.
1474
+ * @param reader Reader or buffer to decode from
1475
+ * @returns DeclaredContractFilter
1476
+ * @throws {Error} If the payload is not a reader or valid buffer
1477
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1478
+ */
1479
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.DeclaredContractFilter;
1480
+
1481
+ /**
1482
+ * Verifies a DeclaredContractFilter message.
1483
+ * @param message Plain object to verify
1484
+ * @returns `null` if valid, otherwise the reason why it is not
1485
+ */
1486
+ public static verify(message: { [k: string]: any }): (string|null);
1487
+
1488
+ /**
1489
+ * Creates a DeclaredContractFilter message from a plain object. Also converts values to their respective internal types.
1490
+ * @param object Plain object
1491
+ * @returns DeclaredContractFilter
1492
+ */
1493
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.DeclaredContractFilter;
1494
+
1495
+ /**
1496
+ * Creates a plain object from a DeclaredContractFilter message. Also converts values to other types if specified.
1497
+ * @param message DeclaredContractFilter
1498
+ * @param [options] Conversion options
1499
+ * @returns Plain object
1500
+ */
1501
+ public static toObject(message: apibara.starknet.v1alpha2.DeclaredContractFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
1502
+
1503
+ /**
1504
+ * Converts this DeclaredContractFilter to JSON.
1505
+ * @returns JSON object
1506
+ */
1507
+ public toJSON(): { [k: string]: any };
1508
+
1509
+ /**
1510
+ * Gets the default type url for DeclaredContractFilter
1511
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1512
+ * @returns The default type url
1513
+ */
1514
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1515
+ }
1516
+
1517
+ /** Properties of a DeployedContractFilter. */
1518
+ interface IDeployedContractFilter {
1519
+
1520
+ /** DeployedContractFilter contractAddress */
1521
+ contractAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
1522
+
1523
+ /** DeployedContractFilter classHash */
1524
+ classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
1525
+ }
1526
+
1527
+ /** Represents a DeployedContractFilter. */
1528
+ class DeployedContractFilter implements IDeployedContractFilter {
1529
+
1530
+ /**
1531
+ * Constructs a new DeployedContractFilter.
1532
+ * @param [properties] Properties to set
1533
+ */
1534
+ constructor(properties?: apibara.starknet.v1alpha2.IDeployedContractFilter);
1535
+
1536
+ /** DeployedContractFilter contractAddress. */
1537
+ public contractAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
1538
+
1539
+ /** DeployedContractFilter classHash. */
1540
+ public classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
1541
+
1542
+ /**
1543
+ * Creates a new DeployedContractFilter instance using the specified properties.
1544
+ * @param [properties] Properties to set
1545
+ * @returns DeployedContractFilter instance
1546
+ */
1547
+ public static create(properties?: apibara.starknet.v1alpha2.IDeployedContractFilter): apibara.starknet.v1alpha2.DeployedContractFilter;
1548
+
1549
+ /**
1550
+ * Encodes the specified DeployedContractFilter message. Does not implicitly {@link apibara.starknet.v1alpha2.DeployedContractFilter.verify|verify} messages.
1551
+ * @param message DeployedContractFilter message or plain object to encode
1552
+ * @param [writer] Writer to encode to
1553
+ * @returns Writer
1554
+ */
1555
+ public static encode(message: apibara.starknet.v1alpha2.IDeployedContractFilter, writer?: $protobuf.Writer): $protobuf.Writer;
1556
+
1557
+ /**
1558
+ * Encodes the specified DeployedContractFilter message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.DeployedContractFilter.verify|verify} messages.
1559
+ * @param message DeployedContractFilter message or plain object to encode
1560
+ * @param [writer] Writer to encode to
1561
+ * @returns Writer
1562
+ */
1563
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IDeployedContractFilter, writer?: $protobuf.Writer): $protobuf.Writer;
1564
+
1565
+ /**
1566
+ * Decodes a DeployedContractFilter message from the specified reader or buffer.
1567
+ * @param reader Reader or buffer to decode from
1568
+ * @param [length] Message length if known beforehand
1569
+ * @returns DeployedContractFilter
1570
+ * @throws {Error} If the payload is not a reader or valid buffer
1571
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1572
+ */
1573
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.DeployedContractFilter;
1574
+
1575
+ /**
1576
+ * Decodes a DeployedContractFilter message from the specified reader or buffer, length delimited.
1577
+ * @param reader Reader or buffer to decode from
1578
+ * @returns DeployedContractFilter
1579
+ * @throws {Error} If the payload is not a reader or valid buffer
1580
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1581
+ */
1582
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.DeployedContractFilter;
1583
+
1584
+ /**
1585
+ * Verifies a DeployedContractFilter message.
1586
+ * @param message Plain object to verify
1587
+ * @returns `null` if valid, otherwise the reason why it is not
1588
+ */
1589
+ public static verify(message: { [k: string]: any }): (string|null);
1590
+
1591
+ /**
1592
+ * Creates a DeployedContractFilter message from a plain object. Also converts values to their respective internal types.
1593
+ * @param object Plain object
1594
+ * @returns DeployedContractFilter
1595
+ */
1596
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.DeployedContractFilter;
1597
+
1598
+ /**
1599
+ * Creates a plain object from a DeployedContractFilter message. Also converts values to other types if specified.
1600
+ * @param message DeployedContractFilter
1601
+ * @param [options] Conversion options
1602
+ * @returns Plain object
1603
+ */
1604
+ public static toObject(message: apibara.starknet.v1alpha2.DeployedContractFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
1605
+
1606
+ /**
1607
+ * Converts this DeployedContractFilter to JSON.
1608
+ * @returns JSON object
1609
+ */
1610
+ public toJSON(): { [k: string]: any };
1611
+
1612
+ /**
1613
+ * Gets the default type url for DeployedContractFilter
1614
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1615
+ * @returns The default type url
1616
+ */
1617
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1618
+ }
1619
+
1620
+ /** Properties of a NonceUpdateFilter. */
1621
+ interface INonceUpdateFilter {
1622
+
1623
+ /** NonceUpdateFilter contractAddress */
1624
+ contractAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
1625
+
1626
+ /** NonceUpdateFilter nonce */
1627
+ nonce?: (apibara.starknet.v1alpha2.IFieldElement|null);
1628
+ }
1629
+
1630
+ /** Represents a NonceUpdateFilter. */
1631
+ class NonceUpdateFilter implements INonceUpdateFilter {
1632
+
1633
+ /**
1634
+ * Constructs a new NonceUpdateFilter.
1635
+ * @param [properties] Properties to set
1636
+ */
1637
+ constructor(properties?: apibara.starknet.v1alpha2.INonceUpdateFilter);
1638
+
1639
+ /** NonceUpdateFilter contractAddress. */
1640
+ public contractAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
1641
+
1642
+ /** NonceUpdateFilter nonce. */
1643
+ public nonce?: (apibara.starknet.v1alpha2.IFieldElement|null);
1644
+
1645
+ /**
1646
+ * Creates a new NonceUpdateFilter instance using the specified properties.
1647
+ * @param [properties] Properties to set
1648
+ * @returns NonceUpdateFilter instance
1649
+ */
1650
+ public static create(properties?: apibara.starknet.v1alpha2.INonceUpdateFilter): apibara.starknet.v1alpha2.NonceUpdateFilter;
1651
+
1652
+ /**
1653
+ * Encodes the specified NonceUpdateFilter message. Does not implicitly {@link apibara.starknet.v1alpha2.NonceUpdateFilter.verify|verify} messages.
1654
+ * @param message NonceUpdateFilter message or plain object to encode
1655
+ * @param [writer] Writer to encode to
1656
+ * @returns Writer
1657
+ */
1658
+ public static encode(message: apibara.starknet.v1alpha2.INonceUpdateFilter, writer?: $protobuf.Writer): $protobuf.Writer;
1659
+
1660
+ /**
1661
+ * Encodes the specified NonceUpdateFilter message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.NonceUpdateFilter.verify|verify} messages.
1662
+ * @param message NonceUpdateFilter message or plain object to encode
1663
+ * @param [writer] Writer to encode to
1664
+ * @returns Writer
1665
+ */
1666
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.INonceUpdateFilter, writer?: $protobuf.Writer): $protobuf.Writer;
1667
+
1668
+ /**
1669
+ * Decodes a NonceUpdateFilter message from the specified reader or buffer.
1670
+ * @param reader Reader or buffer to decode from
1671
+ * @param [length] Message length if known beforehand
1672
+ * @returns NonceUpdateFilter
1673
+ * @throws {Error} If the payload is not a reader or valid buffer
1674
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1675
+ */
1676
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.NonceUpdateFilter;
1677
+
1678
+ /**
1679
+ * Decodes a NonceUpdateFilter message from the specified reader or buffer, length delimited.
1680
+ * @param reader Reader or buffer to decode from
1681
+ * @returns NonceUpdateFilter
1682
+ * @throws {Error} If the payload is not a reader or valid buffer
1683
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1684
+ */
1685
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.NonceUpdateFilter;
1686
+
1687
+ /**
1688
+ * Verifies a NonceUpdateFilter message.
1689
+ * @param message Plain object to verify
1690
+ * @returns `null` if valid, otherwise the reason why it is not
1691
+ */
1692
+ public static verify(message: { [k: string]: any }): (string|null);
1693
+
1694
+ /**
1695
+ * Creates a NonceUpdateFilter message from a plain object. Also converts values to their respective internal types.
1696
+ * @param object Plain object
1697
+ * @returns NonceUpdateFilter
1698
+ */
1699
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.NonceUpdateFilter;
1700
+
1701
+ /**
1702
+ * Creates a plain object from a NonceUpdateFilter message. Also converts values to other types if specified.
1703
+ * @param message NonceUpdateFilter
1704
+ * @param [options] Conversion options
1705
+ * @returns Plain object
1706
+ */
1707
+ public static toObject(message: apibara.starknet.v1alpha2.NonceUpdateFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
1708
+
1709
+ /**
1710
+ * Converts this NonceUpdateFilter to JSON.
1711
+ * @returns JSON object
1712
+ */
1713
+ public toJSON(): { [k: string]: any };
1714
+
1715
+ /**
1716
+ * Gets the default type url for NonceUpdateFilter
1717
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1718
+ * @returns The default type url
1719
+ */
1720
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1721
+ }
1722
+
1723
+ /** Properties of a FieldElement. */
1724
+ interface IFieldElement {
1725
+
1726
+ /** FieldElement loLo */
1727
+ loLo?: (number|Long|null);
1728
+
1729
+ /** FieldElement loHi */
1730
+ loHi?: (number|Long|null);
1731
+
1732
+ /** FieldElement hiLo */
1733
+ hiLo?: (number|Long|null);
1734
+
1735
+ /** FieldElement hiHi */
1736
+ hiHi?: (number|Long|null);
1737
+ }
1738
+
1739
+ /** Represents a FieldElement. */
1740
+ class FieldElement implements IFieldElement {
1741
+
1742
+ /**
1743
+ * Constructs a new FieldElement.
1744
+ * @param [properties] Properties to set
1745
+ */
1746
+ constructor(properties?: apibara.starknet.v1alpha2.IFieldElement);
1747
+
1748
+ /** FieldElement loLo. */
1749
+ public loLo: (number|Long);
1750
+
1751
+ /** FieldElement loHi. */
1752
+ public loHi: (number|Long);
1753
+
1754
+ /** FieldElement hiLo. */
1755
+ public hiLo: (number|Long);
1756
+
1757
+ /** FieldElement hiHi. */
1758
+ public hiHi: (number|Long);
1759
+
1760
+ /**
1761
+ * Creates a new FieldElement instance using the specified properties.
1762
+ * @param [properties] Properties to set
1763
+ * @returns FieldElement instance
1764
+ */
1765
+ public static create(properties?: apibara.starknet.v1alpha2.IFieldElement): apibara.starknet.v1alpha2.FieldElement;
1766
+
1767
+ /**
1768
+ * Encodes the specified FieldElement message. Does not implicitly {@link apibara.starknet.v1alpha2.FieldElement.verify|verify} messages.
1769
+ * @param message FieldElement message or plain object to encode
1770
+ * @param [writer] Writer to encode to
1771
+ * @returns Writer
1772
+ */
1773
+ public static encode(message: apibara.starknet.v1alpha2.IFieldElement, writer?: $protobuf.Writer): $protobuf.Writer;
1774
+
1775
+ /**
1776
+ * Encodes the specified FieldElement message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.FieldElement.verify|verify} messages.
1777
+ * @param message FieldElement message or plain object to encode
1778
+ * @param [writer] Writer to encode to
1779
+ * @returns Writer
1780
+ */
1781
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IFieldElement, writer?: $protobuf.Writer): $protobuf.Writer;
1782
+
1783
+ /**
1784
+ * Decodes a FieldElement message from the specified reader or buffer.
1785
+ * @param reader Reader or buffer to decode from
1786
+ * @param [length] Message length if known beforehand
1787
+ * @returns FieldElement
1788
+ * @throws {Error} If the payload is not a reader or valid buffer
1789
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1790
+ */
1791
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.FieldElement;
1792
+
1793
+ /**
1794
+ * Decodes a FieldElement message from the specified reader or buffer, length delimited.
1795
+ * @param reader Reader or buffer to decode from
1796
+ * @returns FieldElement
1797
+ * @throws {Error} If the payload is not a reader or valid buffer
1798
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1799
+ */
1800
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.FieldElement;
1801
+
1802
+ /**
1803
+ * Verifies a FieldElement message.
1804
+ * @param message Plain object to verify
1805
+ * @returns `null` if valid, otherwise the reason why it is not
1806
+ */
1807
+ public static verify(message: { [k: string]: any }): (string|null);
1808
+
1809
+ /**
1810
+ * Creates a FieldElement message from a plain object. Also converts values to their respective internal types.
1811
+ * @param object Plain object
1812
+ * @returns FieldElement
1813
+ */
1814
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.FieldElement;
1815
+
1816
+ /**
1817
+ * Creates a plain object from a FieldElement message. Also converts values to other types if specified.
1818
+ * @param message FieldElement
1819
+ * @param [options] Conversion options
1820
+ * @returns Plain object
1821
+ */
1822
+ public static toObject(message: apibara.starknet.v1alpha2.FieldElement, options?: $protobuf.IConversionOptions): { [k: string]: any };
1823
+
1824
+ /**
1825
+ * Converts this FieldElement to JSON.
1826
+ * @returns JSON object
1827
+ */
1828
+ public toJSON(): { [k: string]: any };
1829
+
1830
+ /**
1831
+ * Gets the default type url for FieldElement
1832
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1833
+ * @returns The default type url
1834
+ */
1835
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1836
+ }
1837
+
1838
+ /** Properties of a Block. */
1839
+ interface IBlock {
1840
+
1841
+ /** Block status */
1842
+ status?: (apibara.starknet.v1alpha2.BlockStatus|null);
1843
+
1844
+ /** Block header */
1845
+ header?: (apibara.starknet.v1alpha2.IBlockHeader|null);
1846
+
1847
+ /** Block transactions */
1848
+ transactions?: (apibara.starknet.v1alpha2.ITransactionWithReceipt[]|null);
1849
+
1850
+ /** Block stateUpdate */
1851
+ stateUpdate?: (apibara.starknet.v1alpha2.IStateUpdate|null);
1852
+
1853
+ /** Block events */
1854
+ events?: (apibara.starknet.v1alpha2.IEventWithTransaction[]|null);
1855
+
1856
+ /** Block l2ToL1Messages */
1857
+ l2ToL1Messages?: (apibara.starknet.v1alpha2.IL2ToL1MessageWithTransaction[]|null);
1858
+ }
1859
+
1860
+ /** Represents a Block. */
1861
+ class Block implements IBlock {
1862
+
1863
+ /**
1864
+ * Constructs a new Block.
1865
+ * @param [properties] Properties to set
1866
+ */
1867
+ constructor(properties?: apibara.starknet.v1alpha2.IBlock);
1868
+
1869
+ /** Block status. */
1870
+ public status: apibara.starknet.v1alpha2.BlockStatus;
1871
+
1872
+ /** Block header. */
1873
+ public header?: (apibara.starknet.v1alpha2.IBlockHeader|null);
1874
+
1875
+ /** Block transactions. */
1876
+ public transactions: apibara.starknet.v1alpha2.ITransactionWithReceipt[];
1877
+
1878
+ /** Block stateUpdate. */
1879
+ public stateUpdate?: (apibara.starknet.v1alpha2.IStateUpdate|null);
1880
+
1881
+ /** Block events. */
1882
+ public events: apibara.starknet.v1alpha2.IEventWithTransaction[];
1883
+
1884
+ /** Block l2ToL1Messages. */
1885
+ public l2ToL1Messages: apibara.starknet.v1alpha2.IL2ToL1MessageWithTransaction[];
1886
+
1887
+ /**
1888
+ * Creates a new Block instance using the specified properties.
1889
+ * @param [properties] Properties to set
1890
+ * @returns Block instance
1891
+ */
1892
+ public static create(properties?: apibara.starknet.v1alpha2.IBlock): apibara.starknet.v1alpha2.Block;
1893
+
1894
+ /**
1895
+ * Encodes the specified Block message. Does not implicitly {@link apibara.starknet.v1alpha2.Block.verify|verify} messages.
1896
+ * @param message Block message or plain object to encode
1897
+ * @param [writer] Writer to encode to
1898
+ * @returns Writer
1899
+ */
1900
+ public static encode(message: apibara.starknet.v1alpha2.IBlock, writer?: $protobuf.Writer): $protobuf.Writer;
1901
+
1902
+ /**
1903
+ * Encodes the specified Block message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.Block.verify|verify} messages.
1904
+ * @param message Block message or plain object to encode
1905
+ * @param [writer] Writer to encode to
1906
+ * @returns Writer
1907
+ */
1908
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IBlock, writer?: $protobuf.Writer): $protobuf.Writer;
1909
+
1910
+ /**
1911
+ * Decodes a Block message from the specified reader or buffer.
1912
+ * @param reader Reader or buffer to decode from
1913
+ * @param [length] Message length if known beforehand
1914
+ * @returns Block
1915
+ * @throws {Error} If the payload is not a reader or valid buffer
1916
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1917
+ */
1918
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.Block;
1919
+
1920
+ /**
1921
+ * Decodes a Block message from the specified reader or buffer, length delimited.
1922
+ * @param reader Reader or buffer to decode from
1923
+ * @returns Block
1924
+ * @throws {Error} If the payload is not a reader or valid buffer
1925
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1926
+ */
1927
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.Block;
1928
+
1929
+ /**
1930
+ * Verifies a Block message.
1931
+ * @param message Plain object to verify
1932
+ * @returns `null` if valid, otherwise the reason why it is not
1933
+ */
1934
+ public static verify(message: { [k: string]: any }): (string|null);
1935
+
1936
+ /**
1937
+ * Creates a Block message from a plain object. Also converts values to their respective internal types.
1938
+ * @param object Plain object
1939
+ * @returns Block
1940
+ */
1941
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.Block;
1942
+
1943
+ /**
1944
+ * Creates a plain object from a Block message. Also converts values to other types if specified.
1945
+ * @param message Block
1946
+ * @param [options] Conversion options
1947
+ * @returns Plain object
1948
+ */
1949
+ public static toObject(message: apibara.starknet.v1alpha2.Block, options?: $protobuf.IConversionOptions): { [k: string]: any };
1950
+
1951
+ /**
1952
+ * Converts this Block to JSON.
1953
+ * @returns JSON object
1954
+ */
1955
+ public toJSON(): { [k: string]: any };
1956
+
1957
+ /**
1958
+ * Gets the default type url for Block
1959
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1960
+ * @returns The default type url
1961
+ */
1962
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1963
+ }
1964
+
1965
+ /** Properties of a BlockHeader. */
1966
+ interface IBlockHeader {
1967
+
1968
+ /** BlockHeader blockHash */
1969
+ blockHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
1970
+
1971
+ /** BlockHeader parentBlockHash */
1972
+ parentBlockHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
1973
+
1974
+ /** BlockHeader blockNumber */
1975
+ blockNumber?: (number|Long|null);
1976
+
1977
+ /** BlockHeader sequencerAddress */
1978
+ sequencerAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
1979
+
1980
+ /** BlockHeader newRoot */
1981
+ newRoot?: (apibara.starknet.v1alpha2.IFieldElement|null);
1982
+
1983
+ /** BlockHeader timestamp */
1984
+ timestamp?: (google.protobuf.ITimestamp|null);
1985
+ }
1986
+
1987
+ /** Represents a BlockHeader. */
1988
+ class BlockHeader implements IBlockHeader {
1989
+
1990
+ /**
1991
+ * Constructs a new BlockHeader.
1992
+ * @param [properties] Properties to set
1993
+ */
1994
+ constructor(properties?: apibara.starknet.v1alpha2.IBlockHeader);
1995
+
1996
+ /** BlockHeader blockHash. */
1997
+ public blockHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
1998
+
1999
+ /** BlockHeader parentBlockHash. */
2000
+ public parentBlockHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
2001
+
2002
+ /** BlockHeader blockNumber. */
2003
+ public blockNumber: (number|Long);
2004
+
2005
+ /** BlockHeader sequencerAddress. */
2006
+ public sequencerAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
2007
+
2008
+ /** BlockHeader newRoot. */
2009
+ public newRoot?: (apibara.starknet.v1alpha2.IFieldElement|null);
2010
+
2011
+ /** BlockHeader timestamp. */
2012
+ public timestamp?: (google.protobuf.ITimestamp|null);
2013
+
2014
+ /**
2015
+ * Creates a new BlockHeader instance using the specified properties.
2016
+ * @param [properties] Properties to set
2017
+ * @returns BlockHeader instance
2018
+ */
2019
+ public static create(properties?: apibara.starknet.v1alpha2.IBlockHeader): apibara.starknet.v1alpha2.BlockHeader;
2020
+
2021
+ /**
2022
+ * Encodes the specified BlockHeader message. Does not implicitly {@link apibara.starknet.v1alpha2.BlockHeader.verify|verify} messages.
2023
+ * @param message BlockHeader message or plain object to encode
2024
+ * @param [writer] Writer to encode to
2025
+ * @returns Writer
2026
+ */
2027
+ public static encode(message: apibara.starknet.v1alpha2.IBlockHeader, writer?: $protobuf.Writer): $protobuf.Writer;
2028
+
2029
+ /**
2030
+ * Encodes the specified BlockHeader message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.BlockHeader.verify|verify} messages.
2031
+ * @param message BlockHeader message or plain object to encode
2032
+ * @param [writer] Writer to encode to
2033
+ * @returns Writer
2034
+ */
2035
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IBlockHeader, writer?: $protobuf.Writer): $protobuf.Writer;
2036
+
2037
+ /**
2038
+ * Decodes a BlockHeader message from the specified reader or buffer.
2039
+ * @param reader Reader or buffer to decode from
2040
+ * @param [length] Message length if known beforehand
2041
+ * @returns BlockHeader
2042
+ * @throws {Error} If the payload is not a reader or valid buffer
2043
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2044
+ */
2045
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.BlockHeader;
2046
+
2047
+ /**
2048
+ * Decodes a BlockHeader message from the specified reader or buffer, length delimited.
2049
+ * @param reader Reader or buffer to decode from
2050
+ * @returns BlockHeader
2051
+ * @throws {Error} If the payload is not a reader or valid buffer
2052
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2053
+ */
2054
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.BlockHeader;
2055
+
2056
+ /**
2057
+ * Verifies a BlockHeader message.
2058
+ * @param message Plain object to verify
2059
+ * @returns `null` if valid, otherwise the reason why it is not
2060
+ */
2061
+ public static verify(message: { [k: string]: any }): (string|null);
2062
+
2063
+ /**
2064
+ * Creates a BlockHeader message from a plain object. Also converts values to their respective internal types.
2065
+ * @param object Plain object
2066
+ * @returns BlockHeader
2067
+ */
2068
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.BlockHeader;
2069
+
2070
+ /**
2071
+ * Creates a plain object from a BlockHeader message. Also converts values to other types if specified.
2072
+ * @param message BlockHeader
2073
+ * @param [options] Conversion options
2074
+ * @returns Plain object
2075
+ */
2076
+ public static toObject(message: apibara.starknet.v1alpha2.BlockHeader, options?: $protobuf.IConversionOptions): { [k: string]: any };
2077
+
2078
+ /**
2079
+ * Converts this BlockHeader to JSON.
2080
+ * @returns JSON object
2081
+ */
2082
+ public toJSON(): { [k: string]: any };
2083
+
2084
+ /**
2085
+ * Gets the default type url for BlockHeader
2086
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2087
+ * @returns The default type url
2088
+ */
2089
+ public static getTypeUrl(typeUrlPrefix?: string): string;
2090
+ }
2091
+
2092
+ /** BlockStatus enum. */
2093
+ enum BlockStatus {
2094
+ BLOCK_STATUS_UNSPECIFIED = 0,
2095
+ BLOCK_STATUS_PENDING = 1,
2096
+ BLOCK_STATUS_ACCEPTED_ON_L2 = 2,
2097
+ BLOCK_STATUS_ACCEPTED_ON_L1 = 3,
2098
+ BLOCK_STATUS_REJECTED = 4
2099
+ }
2100
+
2101
+ /** Properties of a TransactionWithReceipt. */
2102
+ interface ITransactionWithReceipt {
2103
+
2104
+ /** TransactionWithReceipt transaction */
2105
+ transaction?: (apibara.starknet.v1alpha2.ITransaction|null);
2106
+
2107
+ /** TransactionWithReceipt receipt */
2108
+ receipt?: (apibara.starknet.v1alpha2.ITransactionReceipt|null);
2109
+ }
2110
+
2111
+ /** Represents a TransactionWithReceipt. */
2112
+ class TransactionWithReceipt implements ITransactionWithReceipt {
2113
+
2114
+ /**
2115
+ * Constructs a new TransactionWithReceipt.
2116
+ * @param [properties] Properties to set
2117
+ */
2118
+ constructor(properties?: apibara.starknet.v1alpha2.ITransactionWithReceipt);
2119
+
2120
+ /** TransactionWithReceipt transaction. */
2121
+ public transaction?: (apibara.starknet.v1alpha2.ITransaction|null);
2122
+
2123
+ /** TransactionWithReceipt receipt. */
2124
+ public receipt?: (apibara.starknet.v1alpha2.ITransactionReceipt|null);
2125
+
2126
+ /**
2127
+ * Creates a new TransactionWithReceipt instance using the specified properties.
2128
+ * @param [properties] Properties to set
2129
+ * @returns TransactionWithReceipt instance
2130
+ */
2131
+ public static create(properties?: apibara.starknet.v1alpha2.ITransactionWithReceipt): apibara.starknet.v1alpha2.TransactionWithReceipt;
2132
+
2133
+ /**
2134
+ * Encodes the specified TransactionWithReceipt message. Does not implicitly {@link apibara.starknet.v1alpha2.TransactionWithReceipt.verify|verify} messages.
2135
+ * @param message TransactionWithReceipt message or plain object to encode
2136
+ * @param [writer] Writer to encode to
2137
+ * @returns Writer
2138
+ */
2139
+ public static encode(message: apibara.starknet.v1alpha2.ITransactionWithReceipt, writer?: $protobuf.Writer): $protobuf.Writer;
2140
+
2141
+ /**
2142
+ * Encodes the specified TransactionWithReceipt message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.TransactionWithReceipt.verify|verify} messages.
2143
+ * @param message TransactionWithReceipt message or plain object to encode
2144
+ * @param [writer] Writer to encode to
2145
+ * @returns Writer
2146
+ */
2147
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.ITransactionWithReceipt, writer?: $protobuf.Writer): $protobuf.Writer;
2148
+
2149
+ /**
2150
+ * Decodes a TransactionWithReceipt message from the specified reader or buffer.
2151
+ * @param reader Reader or buffer to decode from
2152
+ * @param [length] Message length if known beforehand
2153
+ * @returns TransactionWithReceipt
2154
+ * @throws {Error} If the payload is not a reader or valid buffer
2155
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2156
+ */
2157
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.TransactionWithReceipt;
2158
+
2159
+ /**
2160
+ * Decodes a TransactionWithReceipt message from the specified reader or buffer, length delimited.
2161
+ * @param reader Reader or buffer to decode from
2162
+ * @returns TransactionWithReceipt
2163
+ * @throws {Error} If the payload is not a reader or valid buffer
2164
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2165
+ */
2166
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.TransactionWithReceipt;
2167
+
2168
+ /**
2169
+ * Verifies a TransactionWithReceipt message.
2170
+ * @param message Plain object to verify
2171
+ * @returns `null` if valid, otherwise the reason why it is not
2172
+ */
2173
+ public static verify(message: { [k: string]: any }): (string|null);
2174
+
2175
+ /**
2176
+ * Creates a TransactionWithReceipt message from a plain object. Also converts values to their respective internal types.
2177
+ * @param object Plain object
2178
+ * @returns TransactionWithReceipt
2179
+ */
2180
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.TransactionWithReceipt;
2181
+
2182
+ /**
2183
+ * Creates a plain object from a TransactionWithReceipt message. Also converts values to other types if specified.
2184
+ * @param message TransactionWithReceipt
2185
+ * @param [options] Conversion options
2186
+ * @returns Plain object
2187
+ */
2188
+ public static toObject(message: apibara.starknet.v1alpha2.TransactionWithReceipt, options?: $protobuf.IConversionOptions): { [k: string]: any };
2189
+
2190
+ /**
2191
+ * Converts this TransactionWithReceipt to JSON.
2192
+ * @returns JSON object
2193
+ */
2194
+ public toJSON(): { [k: string]: any };
2195
+
2196
+ /**
2197
+ * Gets the default type url for TransactionWithReceipt
2198
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2199
+ * @returns The default type url
2200
+ */
2201
+ public static getTypeUrl(typeUrlPrefix?: string): string;
2202
+ }
2203
+
2204
+ /** Properties of a Transaction. */
2205
+ interface ITransaction {
2206
+
2207
+ /** Transaction meta */
2208
+ meta?: (apibara.starknet.v1alpha2.ITransactionMeta|null);
2209
+
2210
+ /** Transaction invokeV0 */
2211
+ invokeV0?: (apibara.starknet.v1alpha2.IInvokeTransactionV0|null);
2212
+
2213
+ /** Transaction invokeV1 */
2214
+ invokeV1?: (apibara.starknet.v1alpha2.IInvokeTransactionV1|null);
2215
+
2216
+ /** Transaction deploy */
2217
+ deploy?: (apibara.starknet.v1alpha2.IDeployTransaction|null);
2218
+
2219
+ /** Transaction declare */
2220
+ declare?: (apibara.starknet.v1alpha2.IDeclareTransaction|null);
2221
+
2222
+ /** Transaction l1Handler */
2223
+ l1Handler?: (apibara.starknet.v1alpha2.IL1HandlerTransaction|null);
2224
+
2225
+ /** Transaction deployAccount */
2226
+ deployAccount?: (apibara.starknet.v1alpha2.IDeployAccountTransaction|null);
2227
+ }
2228
+
2229
+ /** Represents a Transaction. */
2230
+ class Transaction implements ITransaction {
2231
+
2232
+ /**
2233
+ * Constructs a new Transaction.
2234
+ * @param [properties] Properties to set
2235
+ */
2236
+ constructor(properties?: apibara.starknet.v1alpha2.ITransaction);
2237
+
2238
+ /** Transaction meta. */
2239
+ public meta?: (apibara.starknet.v1alpha2.ITransactionMeta|null);
2240
+
2241
+ /** Transaction invokeV0. */
2242
+ public invokeV0?: (apibara.starknet.v1alpha2.IInvokeTransactionV0|null);
2243
+
2244
+ /** Transaction invokeV1. */
2245
+ public invokeV1?: (apibara.starknet.v1alpha2.IInvokeTransactionV1|null);
2246
+
2247
+ /** Transaction deploy. */
2248
+ public deploy?: (apibara.starknet.v1alpha2.IDeployTransaction|null);
2249
+
2250
+ /** Transaction declare. */
2251
+ public declare?: (apibara.starknet.v1alpha2.IDeclareTransaction|null);
2252
+
2253
+ /** Transaction l1Handler. */
2254
+ public l1Handler?: (apibara.starknet.v1alpha2.IL1HandlerTransaction|null);
2255
+
2256
+ /** Transaction deployAccount. */
2257
+ public deployAccount?: (apibara.starknet.v1alpha2.IDeployAccountTransaction|null);
2258
+
2259
+ /** Transaction transaction. */
2260
+ public transaction?: ("invokeV0"|"invokeV1"|"deploy"|"declare"|"l1Handler"|"deployAccount");
2261
+
2262
+ /**
2263
+ * Creates a new Transaction instance using the specified properties.
2264
+ * @param [properties] Properties to set
2265
+ * @returns Transaction instance
2266
+ */
2267
+ public static create(properties?: apibara.starknet.v1alpha2.ITransaction): apibara.starknet.v1alpha2.Transaction;
2268
+
2269
+ /**
2270
+ * Encodes the specified Transaction message. Does not implicitly {@link apibara.starknet.v1alpha2.Transaction.verify|verify} messages.
2271
+ * @param message Transaction message or plain object to encode
2272
+ * @param [writer] Writer to encode to
2273
+ * @returns Writer
2274
+ */
2275
+ public static encode(message: apibara.starknet.v1alpha2.ITransaction, writer?: $protobuf.Writer): $protobuf.Writer;
2276
+
2277
+ /**
2278
+ * Encodes the specified Transaction message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.Transaction.verify|verify} messages.
2279
+ * @param message Transaction message or plain object to encode
2280
+ * @param [writer] Writer to encode to
2281
+ * @returns Writer
2282
+ */
2283
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.ITransaction, writer?: $protobuf.Writer): $protobuf.Writer;
2284
+
2285
+ /**
2286
+ * Decodes a Transaction message from the specified reader or buffer.
2287
+ * @param reader Reader or buffer to decode from
2288
+ * @param [length] Message length if known beforehand
2289
+ * @returns Transaction
2290
+ * @throws {Error} If the payload is not a reader or valid buffer
2291
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2292
+ */
2293
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.Transaction;
2294
+
2295
+ /**
2296
+ * Decodes a Transaction message from the specified reader or buffer, length delimited.
2297
+ * @param reader Reader or buffer to decode from
2298
+ * @returns Transaction
2299
+ * @throws {Error} If the payload is not a reader or valid buffer
2300
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2301
+ */
2302
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.Transaction;
2303
+
2304
+ /**
2305
+ * Verifies a Transaction message.
2306
+ * @param message Plain object to verify
2307
+ * @returns `null` if valid, otherwise the reason why it is not
2308
+ */
2309
+ public static verify(message: { [k: string]: any }): (string|null);
2310
+
2311
+ /**
2312
+ * Creates a Transaction message from a plain object. Also converts values to their respective internal types.
2313
+ * @param object Plain object
2314
+ * @returns Transaction
2315
+ */
2316
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.Transaction;
2317
+
2318
+ /**
2319
+ * Creates a plain object from a Transaction message. Also converts values to other types if specified.
2320
+ * @param message Transaction
2321
+ * @param [options] Conversion options
2322
+ * @returns Plain object
2323
+ */
2324
+ public static toObject(message: apibara.starknet.v1alpha2.Transaction, options?: $protobuf.IConversionOptions): { [k: string]: any };
2325
+
2326
+ /**
2327
+ * Converts this Transaction to JSON.
2328
+ * @returns JSON object
2329
+ */
2330
+ public toJSON(): { [k: string]: any };
2331
+
2332
+ /**
2333
+ * Gets the default type url for Transaction
2334
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2335
+ * @returns The default type url
2336
+ */
2337
+ public static getTypeUrl(typeUrlPrefix?: string): string;
2338
+ }
2339
+
2340
+ /** Properties of a TransactionMeta. */
2341
+ interface ITransactionMeta {
2342
+
2343
+ /** TransactionMeta hash */
2344
+ hash?: (apibara.starknet.v1alpha2.IFieldElement|null);
2345
+
2346
+ /** TransactionMeta maxFee */
2347
+ maxFee?: (apibara.starknet.v1alpha2.IFieldElement|null);
2348
+
2349
+ /** TransactionMeta signature */
2350
+ signature?: (apibara.starknet.v1alpha2.IFieldElement[]|null);
2351
+
2352
+ /** TransactionMeta nonce */
2353
+ nonce?: (apibara.starknet.v1alpha2.IFieldElement|null);
2354
+
2355
+ /** TransactionMeta version */
2356
+ version?: (number|Long|null);
2357
+ }
2358
+
2359
+ /** Represents a TransactionMeta. */
2360
+ class TransactionMeta implements ITransactionMeta {
2361
+
2362
+ /**
2363
+ * Constructs a new TransactionMeta.
2364
+ * @param [properties] Properties to set
2365
+ */
2366
+ constructor(properties?: apibara.starknet.v1alpha2.ITransactionMeta);
2367
+
2368
+ /** TransactionMeta hash. */
2369
+ public hash?: (apibara.starknet.v1alpha2.IFieldElement|null);
2370
+
2371
+ /** TransactionMeta maxFee. */
2372
+ public maxFee?: (apibara.starknet.v1alpha2.IFieldElement|null);
2373
+
2374
+ /** TransactionMeta signature. */
2375
+ public signature: apibara.starknet.v1alpha2.IFieldElement[];
2376
+
2377
+ /** TransactionMeta nonce. */
2378
+ public nonce?: (apibara.starknet.v1alpha2.IFieldElement|null);
2379
+
2380
+ /** TransactionMeta version. */
2381
+ public version: (number|Long);
2382
+
2383
+ /**
2384
+ * Creates a new TransactionMeta instance using the specified properties.
2385
+ * @param [properties] Properties to set
2386
+ * @returns TransactionMeta instance
2387
+ */
2388
+ public static create(properties?: apibara.starknet.v1alpha2.ITransactionMeta): apibara.starknet.v1alpha2.TransactionMeta;
2389
+
2390
+ /**
2391
+ * Encodes the specified TransactionMeta message. Does not implicitly {@link apibara.starknet.v1alpha2.TransactionMeta.verify|verify} messages.
2392
+ * @param message TransactionMeta message or plain object to encode
2393
+ * @param [writer] Writer to encode to
2394
+ * @returns Writer
2395
+ */
2396
+ public static encode(message: apibara.starknet.v1alpha2.ITransactionMeta, writer?: $protobuf.Writer): $protobuf.Writer;
2397
+
2398
+ /**
2399
+ * Encodes the specified TransactionMeta message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.TransactionMeta.verify|verify} messages.
2400
+ * @param message TransactionMeta message or plain object to encode
2401
+ * @param [writer] Writer to encode to
2402
+ * @returns Writer
2403
+ */
2404
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.ITransactionMeta, writer?: $protobuf.Writer): $protobuf.Writer;
2405
+
2406
+ /**
2407
+ * Decodes a TransactionMeta message from the specified reader or buffer.
2408
+ * @param reader Reader or buffer to decode from
2409
+ * @param [length] Message length if known beforehand
2410
+ * @returns TransactionMeta
2411
+ * @throws {Error} If the payload is not a reader or valid buffer
2412
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2413
+ */
2414
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.TransactionMeta;
2415
+
2416
+ /**
2417
+ * Decodes a TransactionMeta message from the specified reader or buffer, length delimited.
2418
+ * @param reader Reader or buffer to decode from
2419
+ * @returns TransactionMeta
2420
+ * @throws {Error} If the payload is not a reader or valid buffer
2421
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2422
+ */
2423
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.TransactionMeta;
2424
+
2425
+ /**
2426
+ * Verifies a TransactionMeta message.
2427
+ * @param message Plain object to verify
2428
+ * @returns `null` if valid, otherwise the reason why it is not
2429
+ */
2430
+ public static verify(message: { [k: string]: any }): (string|null);
2431
+
2432
+ /**
2433
+ * Creates a TransactionMeta message from a plain object. Also converts values to their respective internal types.
2434
+ * @param object Plain object
2435
+ * @returns TransactionMeta
2436
+ */
2437
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.TransactionMeta;
2438
+
2439
+ /**
2440
+ * Creates a plain object from a TransactionMeta message. Also converts values to other types if specified.
2441
+ * @param message TransactionMeta
2442
+ * @param [options] Conversion options
2443
+ * @returns Plain object
2444
+ */
2445
+ public static toObject(message: apibara.starknet.v1alpha2.TransactionMeta, options?: $protobuf.IConversionOptions): { [k: string]: any };
2446
+
2447
+ /**
2448
+ * Converts this TransactionMeta to JSON.
2449
+ * @returns JSON object
2450
+ */
2451
+ public toJSON(): { [k: string]: any };
2452
+
2453
+ /**
2454
+ * Gets the default type url for TransactionMeta
2455
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2456
+ * @returns The default type url
2457
+ */
2458
+ public static getTypeUrl(typeUrlPrefix?: string): string;
2459
+ }
2460
+
2461
+ /** Properties of an InvokeTransactionV0. */
2462
+ interface IInvokeTransactionV0 {
2463
+
2464
+ /** InvokeTransactionV0 contractAddress */
2465
+ contractAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
2466
+
2467
+ /** InvokeTransactionV0 entryPointSelector */
2468
+ entryPointSelector?: (apibara.starknet.v1alpha2.IFieldElement|null);
2469
+
2470
+ /** InvokeTransactionV0 calldata */
2471
+ calldata?: (apibara.starknet.v1alpha2.IFieldElement[]|null);
2472
+ }
2473
+
2474
+ /** Represents an InvokeTransactionV0. */
2475
+ class InvokeTransactionV0 implements IInvokeTransactionV0 {
2476
+
2477
+ /**
2478
+ * Constructs a new InvokeTransactionV0.
2479
+ * @param [properties] Properties to set
2480
+ */
2481
+ constructor(properties?: apibara.starknet.v1alpha2.IInvokeTransactionV0);
2482
+
2483
+ /** InvokeTransactionV0 contractAddress. */
2484
+ public contractAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
2485
+
2486
+ /** InvokeTransactionV0 entryPointSelector. */
2487
+ public entryPointSelector?: (apibara.starknet.v1alpha2.IFieldElement|null);
2488
+
2489
+ /** InvokeTransactionV0 calldata. */
2490
+ public calldata: apibara.starknet.v1alpha2.IFieldElement[];
2491
+
2492
+ /**
2493
+ * Creates a new InvokeTransactionV0 instance using the specified properties.
2494
+ * @param [properties] Properties to set
2495
+ * @returns InvokeTransactionV0 instance
2496
+ */
2497
+ public static create(properties?: apibara.starknet.v1alpha2.IInvokeTransactionV0): apibara.starknet.v1alpha2.InvokeTransactionV0;
2498
+
2499
+ /**
2500
+ * Encodes the specified InvokeTransactionV0 message. Does not implicitly {@link apibara.starknet.v1alpha2.InvokeTransactionV0.verify|verify} messages.
2501
+ * @param message InvokeTransactionV0 message or plain object to encode
2502
+ * @param [writer] Writer to encode to
2503
+ * @returns Writer
2504
+ */
2505
+ public static encode(message: apibara.starknet.v1alpha2.IInvokeTransactionV0, writer?: $protobuf.Writer): $protobuf.Writer;
2506
+
2507
+ /**
2508
+ * Encodes the specified InvokeTransactionV0 message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.InvokeTransactionV0.verify|verify} messages.
2509
+ * @param message InvokeTransactionV0 message or plain object to encode
2510
+ * @param [writer] Writer to encode to
2511
+ * @returns Writer
2512
+ */
2513
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IInvokeTransactionV0, writer?: $protobuf.Writer): $protobuf.Writer;
2514
+
2515
+ /**
2516
+ * Decodes an InvokeTransactionV0 message from the specified reader or buffer.
2517
+ * @param reader Reader or buffer to decode from
2518
+ * @param [length] Message length if known beforehand
2519
+ * @returns InvokeTransactionV0
2520
+ * @throws {Error} If the payload is not a reader or valid buffer
2521
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2522
+ */
2523
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.InvokeTransactionV0;
2524
+
2525
+ /**
2526
+ * Decodes an InvokeTransactionV0 message from the specified reader or buffer, length delimited.
2527
+ * @param reader Reader or buffer to decode from
2528
+ * @returns InvokeTransactionV0
2529
+ * @throws {Error} If the payload is not a reader or valid buffer
2530
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2531
+ */
2532
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.InvokeTransactionV0;
2533
+
2534
+ /**
2535
+ * Verifies an InvokeTransactionV0 message.
2536
+ * @param message Plain object to verify
2537
+ * @returns `null` if valid, otherwise the reason why it is not
2538
+ */
2539
+ public static verify(message: { [k: string]: any }): (string|null);
2540
+
2541
+ /**
2542
+ * Creates an InvokeTransactionV0 message from a plain object. Also converts values to their respective internal types.
2543
+ * @param object Plain object
2544
+ * @returns InvokeTransactionV0
2545
+ */
2546
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.InvokeTransactionV0;
2547
+
2548
+ /**
2549
+ * Creates a plain object from an InvokeTransactionV0 message. Also converts values to other types if specified.
2550
+ * @param message InvokeTransactionV0
2551
+ * @param [options] Conversion options
2552
+ * @returns Plain object
2553
+ */
2554
+ public static toObject(message: apibara.starknet.v1alpha2.InvokeTransactionV0, options?: $protobuf.IConversionOptions): { [k: string]: any };
2555
+
2556
+ /**
2557
+ * Converts this InvokeTransactionV0 to JSON.
2558
+ * @returns JSON object
2559
+ */
2560
+ public toJSON(): { [k: string]: any };
2561
+
2562
+ /**
2563
+ * Gets the default type url for InvokeTransactionV0
2564
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2565
+ * @returns The default type url
2566
+ */
2567
+ public static getTypeUrl(typeUrlPrefix?: string): string;
2568
+ }
2569
+
2570
+ /** Properties of an InvokeTransactionV1. */
2571
+ interface IInvokeTransactionV1 {
2572
+
2573
+ /** InvokeTransactionV1 senderAddress */
2574
+ senderAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
2575
+
2576
+ /** InvokeTransactionV1 calldata */
2577
+ calldata?: (apibara.starknet.v1alpha2.IFieldElement[]|null);
2578
+ }
2579
+
2580
+ /** Represents an InvokeTransactionV1. */
2581
+ class InvokeTransactionV1 implements IInvokeTransactionV1 {
2582
+
2583
+ /**
2584
+ * Constructs a new InvokeTransactionV1.
2585
+ * @param [properties] Properties to set
2586
+ */
2587
+ constructor(properties?: apibara.starknet.v1alpha2.IInvokeTransactionV1);
2588
+
2589
+ /** InvokeTransactionV1 senderAddress. */
2590
+ public senderAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
2591
+
2592
+ /** InvokeTransactionV1 calldata. */
2593
+ public calldata: apibara.starknet.v1alpha2.IFieldElement[];
2594
+
2595
+ /**
2596
+ * Creates a new InvokeTransactionV1 instance using the specified properties.
2597
+ * @param [properties] Properties to set
2598
+ * @returns InvokeTransactionV1 instance
2599
+ */
2600
+ public static create(properties?: apibara.starknet.v1alpha2.IInvokeTransactionV1): apibara.starknet.v1alpha2.InvokeTransactionV1;
2601
+
2602
+ /**
2603
+ * Encodes the specified InvokeTransactionV1 message. Does not implicitly {@link apibara.starknet.v1alpha2.InvokeTransactionV1.verify|verify} messages.
2604
+ * @param message InvokeTransactionV1 message or plain object to encode
2605
+ * @param [writer] Writer to encode to
2606
+ * @returns Writer
2607
+ */
2608
+ public static encode(message: apibara.starknet.v1alpha2.IInvokeTransactionV1, writer?: $protobuf.Writer): $protobuf.Writer;
2609
+
2610
+ /**
2611
+ * Encodes the specified InvokeTransactionV1 message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.InvokeTransactionV1.verify|verify} messages.
2612
+ * @param message InvokeTransactionV1 message or plain object to encode
2613
+ * @param [writer] Writer to encode to
2614
+ * @returns Writer
2615
+ */
2616
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IInvokeTransactionV1, writer?: $protobuf.Writer): $protobuf.Writer;
2617
+
2618
+ /**
2619
+ * Decodes an InvokeTransactionV1 message from the specified reader or buffer.
2620
+ * @param reader Reader or buffer to decode from
2621
+ * @param [length] Message length if known beforehand
2622
+ * @returns InvokeTransactionV1
2623
+ * @throws {Error} If the payload is not a reader or valid buffer
2624
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2625
+ */
2626
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.InvokeTransactionV1;
2627
+
2628
+ /**
2629
+ * Decodes an InvokeTransactionV1 message from the specified reader or buffer, length delimited.
2630
+ * @param reader Reader or buffer to decode from
2631
+ * @returns InvokeTransactionV1
2632
+ * @throws {Error} If the payload is not a reader or valid buffer
2633
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2634
+ */
2635
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.InvokeTransactionV1;
2636
+
2637
+ /**
2638
+ * Verifies an InvokeTransactionV1 message.
2639
+ * @param message Plain object to verify
2640
+ * @returns `null` if valid, otherwise the reason why it is not
2641
+ */
2642
+ public static verify(message: { [k: string]: any }): (string|null);
2643
+
2644
+ /**
2645
+ * Creates an InvokeTransactionV1 message from a plain object. Also converts values to their respective internal types.
2646
+ * @param object Plain object
2647
+ * @returns InvokeTransactionV1
2648
+ */
2649
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.InvokeTransactionV1;
2650
+
2651
+ /**
2652
+ * Creates a plain object from an InvokeTransactionV1 message. Also converts values to other types if specified.
2653
+ * @param message InvokeTransactionV1
2654
+ * @param [options] Conversion options
2655
+ * @returns Plain object
2656
+ */
2657
+ public static toObject(message: apibara.starknet.v1alpha2.InvokeTransactionV1, options?: $protobuf.IConversionOptions): { [k: string]: any };
2658
+
2659
+ /**
2660
+ * Converts this InvokeTransactionV1 to JSON.
2661
+ * @returns JSON object
2662
+ */
2663
+ public toJSON(): { [k: string]: any };
2664
+
2665
+ /**
2666
+ * Gets the default type url for InvokeTransactionV1
2667
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2668
+ * @returns The default type url
2669
+ */
2670
+ public static getTypeUrl(typeUrlPrefix?: string): string;
2671
+ }
2672
+
2673
+ /** Properties of a DeployTransaction. */
2674
+ interface IDeployTransaction {
2675
+
2676
+ /** DeployTransaction constructorCalldata */
2677
+ constructorCalldata?: (apibara.starknet.v1alpha2.IFieldElement[]|null);
2678
+
2679
+ /** DeployTransaction contractAddressSalt */
2680
+ contractAddressSalt?: (apibara.starknet.v1alpha2.IFieldElement|null);
2681
+
2682
+ /** DeployTransaction classHash */
2683
+ classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
2684
+ }
2685
+
2686
+ /** Represents a DeployTransaction. */
2687
+ class DeployTransaction implements IDeployTransaction {
2688
+
2689
+ /**
2690
+ * Constructs a new DeployTransaction.
2691
+ * @param [properties] Properties to set
2692
+ */
2693
+ constructor(properties?: apibara.starknet.v1alpha2.IDeployTransaction);
2694
+
2695
+ /** DeployTransaction constructorCalldata. */
2696
+ public constructorCalldata: apibara.starknet.v1alpha2.IFieldElement[];
2697
+
2698
+ /** DeployTransaction contractAddressSalt. */
2699
+ public contractAddressSalt?: (apibara.starknet.v1alpha2.IFieldElement|null);
2700
+
2701
+ /** DeployTransaction classHash. */
2702
+ public classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
2703
+
2704
+ /**
2705
+ * Creates a new DeployTransaction instance using the specified properties.
2706
+ * @param [properties] Properties to set
2707
+ * @returns DeployTransaction instance
2708
+ */
2709
+ public static create(properties?: apibara.starknet.v1alpha2.IDeployTransaction): apibara.starknet.v1alpha2.DeployTransaction;
2710
+
2711
+ /**
2712
+ * Encodes the specified DeployTransaction message. Does not implicitly {@link apibara.starknet.v1alpha2.DeployTransaction.verify|verify} messages.
2713
+ * @param message DeployTransaction message or plain object to encode
2714
+ * @param [writer] Writer to encode to
2715
+ * @returns Writer
2716
+ */
2717
+ public static encode(message: apibara.starknet.v1alpha2.IDeployTransaction, writer?: $protobuf.Writer): $protobuf.Writer;
2718
+
2719
+ /**
2720
+ * Encodes the specified DeployTransaction message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.DeployTransaction.verify|verify} messages.
2721
+ * @param message DeployTransaction message or plain object to encode
2722
+ * @param [writer] Writer to encode to
2723
+ * @returns Writer
2724
+ */
2725
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IDeployTransaction, writer?: $protobuf.Writer): $protobuf.Writer;
2726
+
2727
+ /**
2728
+ * Decodes a DeployTransaction message from the specified reader or buffer.
2729
+ * @param reader Reader or buffer to decode from
2730
+ * @param [length] Message length if known beforehand
2731
+ * @returns DeployTransaction
2732
+ * @throws {Error} If the payload is not a reader or valid buffer
2733
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2734
+ */
2735
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.DeployTransaction;
2736
+
2737
+ /**
2738
+ * Decodes a DeployTransaction message from the specified reader or buffer, length delimited.
2739
+ * @param reader Reader or buffer to decode from
2740
+ * @returns DeployTransaction
2741
+ * @throws {Error} If the payload is not a reader or valid buffer
2742
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2743
+ */
2744
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.DeployTransaction;
2745
+
2746
+ /**
2747
+ * Verifies a DeployTransaction message.
2748
+ * @param message Plain object to verify
2749
+ * @returns `null` if valid, otherwise the reason why it is not
2750
+ */
2751
+ public static verify(message: { [k: string]: any }): (string|null);
2752
+
2753
+ /**
2754
+ * Creates a DeployTransaction message from a plain object. Also converts values to their respective internal types.
2755
+ * @param object Plain object
2756
+ * @returns DeployTransaction
2757
+ */
2758
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.DeployTransaction;
2759
+
2760
+ /**
2761
+ * Creates a plain object from a DeployTransaction message. Also converts values to other types if specified.
2762
+ * @param message DeployTransaction
2763
+ * @param [options] Conversion options
2764
+ * @returns Plain object
2765
+ */
2766
+ public static toObject(message: apibara.starknet.v1alpha2.DeployTransaction, options?: $protobuf.IConversionOptions): { [k: string]: any };
2767
+
2768
+ /**
2769
+ * Converts this DeployTransaction to JSON.
2770
+ * @returns JSON object
2771
+ */
2772
+ public toJSON(): { [k: string]: any };
2773
+
2774
+ /**
2775
+ * Gets the default type url for DeployTransaction
2776
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2777
+ * @returns The default type url
2778
+ */
2779
+ public static getTypeUrl(typeUrlPrefix?: string): string;
2780
+ }
2781
+
2782
+ /** Properties of a DeclareTransaction. */
2783
+ interface IDeclareTransaction {
2784
+
2785
+ /** DeclareTransaction classHash */
2786
+ classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
2787
+
2788
+ /** DeclareTransaction senderAddress */
2789
+ senderAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
2790
+ }
2791
+
2792
+ /** Represents a DeclareTransaction. */
2793
+ class DeclareTransaction implements IDeclareTransaction {
2794
+
2795
+ /**
2796
+ * Constructs a new DeclareTransaction.
2797
+ * @param [properties] Properties to set
2798
+ */
2799
+ constructor(properties?: apibara.starknet.v1alpha2.IDeclareTransaction);
2800
+
2801
+ /** DeclareTransaction classHash. */
2802
+ public classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
2803
+
2804
+ /** DeclareTransaction senderAddress. */
2805
+ public senderAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
2806
+
2807
+ /**
2808
+ * Creates a new DeclareTransaction instance using the specified properties.
2809
+ * @param [properties] Properties to set
2810
+ * @returns DeclareTransaction instance
2811
+ */
2812
+ public static create(properties?: apibara.starknet.v1alpha2.IDeclareTransaction): apibara.starknet.v1alpha2.DeclareTransaction;
2813
+
2814
+ /**
2815
+ * Encodes the specified DeclareTransaction message. Does not implicitly {@link apibara.starknet.v1alpha2.DeclareTransaction.verify|verify} messages.
2816
+ * @param message DeclareTransaction message or plain object to encode
2817
+ * @param [writer] Writer to encode to
2818
+ * @returns Writer
2819
+ */
2820
+ public static encode(message: apibara.starknet.v1alpha2.IDeclareTransaction, writer?: $protobuf.Writer): $protobuf.Writer;
2821
+
2822
+ /**
2823
+ * Encodes the specified DeclareTransaction message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.DeclareTransaction.verify|verify} messages.
2824
+ * @param message DeclareTransaction message or plain object to encode
2825
+ * @param [writer] Writer to encode to
2826
+ * @returns Writer
2827
+ */
2828
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IDeclareTransaction, writer?: $protobuf.Writer): $protobuf.Writer;
2829
+
2830
+ /**
2831
+ * Decodes a DeclareTransaction message from the specified reader or buffer.
2832
+ * @param reader Reader or buffer to decode from
2833
+ * @param [length] Message length if known beforehand
2834
+ * @returns DeclareTransaction
2835
+ * @throws {Error} If the payload is not a reader or valid buffer
2836
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2837
+ */
2838
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.DeclareTransaction;
2839
+
2840
+ /**
2841
+ * Decodes a DeclareTransaction message from the specified reader or buffer, length delimited.
2842
+ * @param reader Reader or buffer to decode from
2843
+ * @returns DeclareTransaction
2844
+ * @throws {Error} If the payload is not a reader or valid buffer
2845
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2846
+ */
2847
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.DeclareTransaction;
2848
+
2849
+ /**
2850
+ * Verifies a DeclareTransaction message.
2851
+ * @param message Plain object to verify
2852
+ * @returns `null` if valid, otherwise the reason why it is not
2853
+ */
2854
+ public static verify(message: { [k: string]: any }): (string|null);
2855
+
2856
+ /**
2857
+ * Creates a DeclareTransaction message from a plain object. Also converts values to their respective internal types.
2858
+ * @param object Plain object
2859
+ * @returns DeclareTransaction
2860
+ */
2861
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.DeclareTransaction;
2862
+
2863
+ /**
2864
+ * Creates a plain object from a DeclareTransaction message. Also converts values to other types if specified.
2865
+ * @param message DeclareTransaction
2866
+ * @param [options] Conversion options
2867
+ * @returns Plain object
2868
+ */
2869
+ public static toObject(message: apibara.starknet.v1alpha2.DeclareTransaction, options?: $protobuf.IConversionOptions): { [k: string]: any };
2870
+
2871
+ /**
2872
+ * Converts this DeclareTransaction to JSON.
2873
+ * @returns JSON object
2874
+ */
2875
+ public toJSON(): { [k: string]: any };
2876
+
2877
+ /**
2878
+ * Gets the default type url for DeclareTransaction
2879
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2880
+ * @returns The default type url
2881
+ */
2882
+ public static getTypeUrl(typeUrlPrefix?: string): string;
2883
+ }
2884
+
2885
+ /** Properties of a L1HandlerTransaction. */
2886
+ interface IL1HandlerTransaction {
2887
+
2888
+ /** L1HandlerTransaction contractAddress */
2889
+ contractAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
2890
+
2891
+ /** L1HandlerTransaction entryPointSelector */
2892
+ entryPointSelector?: (apibara.starknet.v1alpha2.IFieldElement|null);
2893
+
2894
+ /** L1HandlerTransaction calldata */
2895
+ calldata?: (apibara.starknet.v1alpha2.IFieldElement[]|null);
2896
+ }
2897
+
2898
+ /** Represents a L1HandlerTransaction. */
2899
+ class L1HandlerTransaction implements IL1HandlerTransaction {
2900
+
2901
+ /**
2902
+ * Constructs a new L1HandlerTransaction.
2903
+ * @param [properties] Properties to set
2904
+ */
2905
+ constructor(properties?: apibara.starknet.v1alpha2.IL1HandlerTransaction);
2906
+
2907
+ /** L1HandlerTransaction contractAddress. */
2908
+ public contractAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
2909
+
2910
+ /** L1HandlerTransaction entryPointSelector. */
2911
+ public entryPointSelector?: (apibara.starknet.v1alpha2.IFieldElement|null);
2912
+
2913
+ /** L1HandlerTransaction calldata. */
2914
+ public calldata: apibara.starknet.v1alpha2.IFieldElement[];
2915
+
2916
+ /**
2917
+ * Creates a new L1HandlerTransaction instance using the specified properties.
2918
+ * @param [properties] Properties to set
2919
+ * @returns L1HandlerTransaction instance
2920
+ */
2921
+ public static create(properties?: apibara.starknet.v1alpha2.IL1HandlerTransaction): apibara.starknet.v1alpha2.L1HandlerTransaction;
2922
+
2923
+ /**
2924
+ * Encodes the specified L1HandlerTransaction message. Does not implicitly {@link apibara.starknet.v1alpha2.L1HandlerTransaction.verify|verify} messages.
2925
+ * @param message L1HandlerTransaction message or plain object to encode
2926
+ * @param [writer] Writer to encode to
2927
+ * @returns Writer
2928
+ */
2929
+ public static encode(message: apibara.starknet.v1alpha2.IL1HandlerTransaction, writer?: $protobuf.Writer): $protobuf.Writer;
2930
+
2931
+ /**
2932
+ * Encodes the specified L1HandlerTransaction message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.L1HandlerTransaction.verify|verify} messages.
2933
+ * @param message L1HandlerTransaction message or plain object to encode
2934
+ * @param [writer] Writer to encode to
2935
+ * @returns Writer
2936
+ */
2937
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IL1HandlerTransaction, writer?: $protobuf.Writer): $protobuf.Writer;
2938
+
2939
+ /**
2940
+ * Decodes a L1HandlerTransaction message from the specified reader or buffer.
2941
+ * @param reader Reader or buffer to decode from
2942
+ * @param [length] Message length if known beforehand
2943
+ * @returns L1HandlerTransaction
2944
+ * @throws {Error} If the payload is not a reader or valid buffer
2945
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2946
+ */
2947
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.L1HandlerTransaction;
2948
+
2949
+ /**
2950
+ * Decodes a L1HandlerTransaction message from the specified reader or buffer, length delimited.
2951
+ * @param reader Reader or buffer to decode from
2952
+ * @returns L1HandlerTransaction
2953
+ * @throws {Error} If the payload is not a reader or valid buffer
2954
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2955
+ */
2956
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.L1HandlerTransaction;
2957
+
2958
+ /**
2959
+ * Verifies a L1HandlerTransaction message.
2960
+ * @param message Plain object to verify
2961
+ * @returns `null` if valid, otherwise the reason why it is not
2962
+ */
2963
+ public static verify(message: { [k: string]: any }): (string|null);
2964
+
2965
+ /**
2966
+ * Creates a L1HandlerTransaction message from a plain object. Also converts values to their respective internal types.
2967
+ * @param object Plain object
2968
+ * @returns L1HandlerTransaction
2969
+ */
2970
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.L1HandlerTransaction;
2971
+
2972
+ /**
2973
+ * Creates a plain object from a L1HandlerTransaction message. Also converts values to other types if specified.
2974
+ * @param message L1HandlerTransaction
2975
+ * @param [options] Conversion options
2976
+ * @returns Plain object
2977
+ */
2978
+ public static toObject(message: apibara.starknet.v1alpha2.L1HandlerTransaction, options?: $protobuf.IConversionOptions): { [k: string]: any };
2979
+
2980
+ /**
2981
+ * Converts this L1HandlerTransaction to JSON.
2982
+ * @returns JSON object
2983
+ */
2984
+ public toJSON(): { [k: string]: any };
2985
+
2986
+ /**
2987
+ * Gets the default type url for L1HandlerTransaction
2988
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2989
+ * @returns The default type url
2990
+ */
2991
+ public static getTypeUrl(typeUrlPrefix?: string): string;
2992
+ }
2993
+
2994
+ /** Properties of a DeployAccountTransaction. */
2995
+ interface IDeployAccountTransaction {
2996
+
2997
+ /** DeployAccountTransaction constructorCalldata */
2998
+ constructorCalldata?: (apibara.starknet.v1alpha2.IFieldElement[]|null);
2999
+
3000
+ /** DeployAccountTransaction contractAddressSalt */
3001
+ contractAddressSalt?: (apibara.starknet.v1alpha2.IFieldElement|null);
3002
+
3003
+ /** DeployAccountTransaction classHash */
3004
+ classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
3005
+ }
3006
+
3007
+ /** Represents a DeployAccountTransaction. */
3008
+ class DeployAccountTransaction implements IDeployAccountTransaction {
3009
+
3010
+ /**
3011
+ * Constructs a new DeployAccountTransaction.
3012
+ * @param [properties] Properties to set
3013
+ */
3014
+ constructor(properties?: apibara.starknet.v1alpha2.IDeployAccountTransaction);
3015
+
3016
+ /** DeployAccountTransaction constructorCalldata. */
3017
+ public constructorCalldata: apibara.starknet.v1alpha2.IFieldElement[];
3018
+
3019
+ /** DeployAccountTransaction contractAddressSalt. */
3020
+ public contractAddressSalt?: (apibara.starknet.v1alpha2.IFieldElement|null);
3021
+
3022
+ /** DeployAccountTransaction classHash. */
3023
+ public classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
3024
+
3025
+ /**
3026
+ * Creates a new DeployAccountTransaction instance using the specified properties.
3027
+ * @param [properties] Properties to set
3028
+ * @returns DeployAccountTransaction instance
3029
+ */
3030
+ public static create(properties?: apibara.starknet.v1alpha2.IDeployAccountTransaction): apibara.starknet.v1alpha2.DeployAccountTransaction;
3031
+
3032
+ /**
3033
+ * Encodes the specified DeployAccountTransaction message. Does not implicitly {@link apibara.starknet.v1alpha2.DeployAccountTransaction.verify|verify} messages.
3034
+ * @param message DeployAccountTransaction message or plain object to encode
3035
+ * @param [writer] Writer to encode to
3036
+ * @returns Writer
3037
+ */
3038
+ public static encode(message: apibara.starknet.v1alpha2.IDeployAccountTransaction, writer?: $protobuf.Writer): $protobuf.Writer;
3039
+
3040
+ /**
3041
+ * Encodes the specified DeployAccountTransaction message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.DeployAccountTransaction.verify|verify} messages.
3042
+ * @param message DeployAccountTransaction message or plain object to encode
3043
+ * @param [writer] Writer to encode to
3044
+ * @returns Writer
3045
+ */
3046
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IDeployAccountTransaction, writer?: $protobuf.Writer): $protobuf.Writer;
3047
+
3048
+ /**
3049
+ * Decodes a DeployAccountTransaction message from the specified reader or buffer.
3050
+ * @param reader Reader or buffer to decode from
3051
+ * @param [length] Message length if known beforehand
3052
+ * @returns DeployAccountTransaction
3053
+ * @throws {Error} If the payload is not a reader or valid buffer
3054
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3055
+ */
3056
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.DeployAccountTransaction;
3057
+
3058
+ /**
3059
+ * Decodes a DeployAccountTransaction message from the specified reader or buffer, length delimited.
3060
+ * @param reader Reader or buffer to decode from
3061
+ * @returns DeployAccountTransaction
3062
+ * @throws {Error} If the payload is not a reader or valid buffer
3063
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3064
+ */
3065
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.DeployAccountTransaction;
3066
+
3067
+ /**
3068
+ * Verifies a DeployAccountTransaction message.
3069
+ * @param message Plain object to verify
3070
+ * @returns `null` if valid, otherwise the reason why it is not
3071
+ */
3072
+ public static verify(message: { [k: string]: any }): (string|null);
3073
+
3074
+ /**
3075
+ * Creates a DeployAccountTransaction message from a plain object. Also converts values to their respective internal types.
3076
+ * @param object Plain object
3077
+ * @returns DeployAccountTransaction
3078
+ */
3079
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.DeployAccountTransaction;
3080
+
3081
+ /**
3082
+ * Creates a plain object from a DeployAccountTransaction message. Also converts values to other types if specified.
3083
+ * @param message DeployAccountTransaction
3084
+ * @param [options] Conversion options
3085
+ * @returns Plain object
3086
+ */
3087
+ public static toObject(message: apibara.starknet.v1alpha2.DeployAccountTransaction, options?: $protobuf.IConversionOptions): { [k: string]: any };
3088
+
3089
+ /**
3090
+ * Converts this DeployAccountTransaction to JSON.
3091
+ * @returns JSON object
3092
+ */
3093
+ public toJSON(): { [k: string]: any };
3094
+
3095
+ /**
3096
+ * Gets the default type url for DeployAccountTransaction
3097
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
3098
+ * @returns The default type url
3099
+ */
3100
+ public static getTypeUrl(typeUrlPrefix?: string): string;
3101
+ }
3102
+
3103
+ /** Properties of a TransactionReceipt. */
3104
+ interface ITransactionReceipt {
3105
+
3106
+ /** TransactionReceipt transactionHash */
3107
+ transactionHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
3108
+
3109
+ /** TransactionReceipt transactionIndex */
3110
+ transactionIndex?: (number|Long|null);
3111
+
3112
+ /** TransactionReceipt actualFee */
3113
+ actualFee?: (apibara.starknet.v1alpha2.IFieldElement|null);
3114
+
3115
+ /** TransactionReceipt l2ToL1Messages */
3116
+ l2ToL1Messages?: (apibara.starknet.v1alpha2.IL2ToL1Message[]|null);
3117
+
3118
+ /** TransactionReceipt events */
3119
+ events?: (apibara.starknet.v1alpha2.IEvent[]|null);
3120
+ }
3121
+
3122
+ /** Represents a TransactionReceipt. */
3123
+ class TransactionReceipt implements ITransactionReceipt {
3124
+
3125
+ /**
3126
+ * Constructs a new TransactionReceipt.
3127
+ * @param [properties] Properties to set
3128
+ */
3129
+ constructor(properties?: apibara.starknet.v1alpha2.ITransactionReceipt);
3130
+
3131
+ /** TransactionReceipt transactionHash. */
3132
+ public transactionHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
3133
+
3134
+ /** TransactionReceipt transactionIndex. */
3135
+ public transactionIndex: (number|Long);
3136
+
3137
+ /** TransactionReceipt actualFee. */
3138
+ public actualFee?: (apibara.starknet.v1alpha2.IFieldElement|null);
3139
+
3140
+ /** TransactionReceipt l2ToL1Messages. */
3141
+ public l2ToL1Messages: apibara.starknet.v1alpha2.IL2ToL1Message[];
3142
+
3143
+ /** TransactionReceipt events. */
3144
+ public events: apibara.starknet.v1alpha2.IEvent[];
3145
+
3146
+ /**
3147
+ * Creates a new TransactionReceipt instance using the specified properties.
3148
+ * @param [properties] Properties to set
3149
+ * @returns TransactionReceipt instance
3150
+ */
3151
+ public static create(properties?: apibara.starknet.v1alpha2.ITransactionReceipt): apibara.starknet.v1alpha2.TransactionReceipt;
3152
+
3153
+ /**
3154
+ * Encodes the specified TransactionReceipt message. Does not implicitly {@link apibara.starknet.v1alpha2.TransactionReceipt.verify|verify} messages.
3155
+ * @param message TransactionReceipt message or plain object to encode
3156
+ * @param [writer] Writer to encode to
3157
+ * @returns Writer
3158
+ */
3159
+ public static encode(message: apibara.starknet.v1alpha2.ITransactionReceipt, writer?: $protobuf.Writer): $protobuf.Writer;
3160
+
3161
+ /**
3162
+ * Encodes the specified TransactionReceipt message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.TransactionReceipt.verify|verify} messages.
3163
+ * @param message TransactionReceipt message or plain object to encode
3164
+ * @param [writer] Writer to encode to
3165
+ * @returns Writer
3166
+ */
3167
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.ITransactionReceipt, writer?: $protobuf.Writer): $protobuf.Writer;
3168
+
3169
+ /**
3170
+ * Decodes a TransactionReceipt message from the specified reader or buffer.
3171
+ * @param reader Reader or buffer to decode from
3172
+ * @param [length] Message length if known beforehand
3173
+ * @returns TransactionReceipt
3174
+ * @throws {Error} If the payload is not a reader or valid buffer
3175
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3176
+ */
3177
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.TransactionReceipt;
3178
+
3179
+ /**
3180
+ * Decodes a TransactionReceipt message from the specified reader or buffer, length delimited.
3181
+ * @param reader Reader or buffer to decode from
3182
+ * @returns TransactionReceipt
3183
+ * @throws {Error} If the payload is not a reader or valid buffer
3184
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3185
+ */
3186
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.TransactionReceipt;
3187
+
3188
+ /**
3189
+ * Verifies a TransactionReceipt message.
3190
+ * @param message Plain object to verify
3191
+ * @returns `null` if valid, otherwise the reason why it is not
3192
+ */
3193
+ public static verify(message: { [k: string]: any }): (string|null);
3194
+
3195
+ /**
3196
+ * Creates a TransactionReceipt message from a plain object. Also converts values to their respective internal types.
3197
+ * @param object Plain object
3198
+ * @returns TransactionReceipt
3199
+ */
3200
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.TransactionReceipt;
3201
+
3202
+ /**
3203
+ * Creates a plain object from a TransactionReceipt message. Also converts values to other types if specified.
3204
+ * @param message TransactionReceipt
3205
+ * @param [options] Conversion options
3206
+ * @returns Plain object
3207
+ */
3208
+ public static toObject(message: apibara.starknet.v1alpha2.TransactionReceipt, options?: $protobuf.IConversionOptions): { [k: string]: any };
3209
+
3210
+ /**
3211
+ * Converts this TransactionReceipt to JSON.
3212
+ * @returns JSON object
3213
+ */
3214
+ public toJSON(): { [k: string]: any };
3215
+
3216
+ /**
3217
+ * Gets the default type url for TransactionReceipt
3218
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
3219
+ * @returns The default type url
3220
+ */
3221
+ public static getTypeUrl(typeUrlPrefix?: string): string;
3222
+ }
3223
+
3224
+ /** Properties of a L2ToL1MessageWithTransaction. */
3225
+ interface IL2ToL1MessageWithTransaction {
3226
+
3227
+ /** L2ToL1MessageWithTransaction transaction */
3228
+ transaction?: (apibara.starknet.v1alpha2.ITransaction|null);
3229
+
3230
+ /** L2ToL1MessageWithTransaction receipt */
3231
+ receipt?: (apibara.starknet.v1alpha2.ITransactionReceipt|null);
3232
+
3233
+ /** L2ToL1MessageWithTransaction message */
3234
+ message?: (apibara.starknet.v1alpha2.IL2ToL1Message|null);
3235
+ }
3236
+
3237
+ /** Represents a L2ToL1MessageWithTransaction. */
3238
+ class L2ToL1MessageWithTransaction implements IL2ToL1MessageWithTransaction {
3239
+
3240
+ /**
3241
+ * Constructs a new L2ToL1MessageWithTransaction.
3242
+ * @param [properties] Properties to set
3243
+ */
3244
+ constructor(properties?: apibara.starknet.v1alpha2.IL2ToL1MessageWithTransaction);
3245
+
3246
+ /** L2ToL1MessageWithTransaction transaction. */
3247
+ public transaction?: (apibara.starknet.v1alpha2.ITransaction|null);
3248
+
3249
+ /** L2ToL1MessageWithTransaction receipt. */
3250
+ public receipt?: (apibara.starknet.v1alpha2.ITransactionReceipt|null);
3251
+
3252
+ /** L2ToL1MessageWithTransaction message. */
3253
+ public message?: (apibara.starknet.v1alpha2.IL2ToL1Message|null);
3254
+
3255
+ /**
3256
+ * Creates a new L2ToL1MessageWithTransaction instance using the specified properties.
3257
+ * @param [properties] Properties to set
3258
+ * @returns L2ToL1MessageWithTransaction instance
3259
+ */
3260
+ public static create(properties?: apibara.starknet.v1alpha2.IL2ToL1MessageWithTransaction): apibara.starknet.v1alpha2.L2ToL1MessageWithTransaction;
3261
+
3262
+ /**
3263
+ * Encodes the specified L2ToL1MessageWithTransaction message. Does not implicitly {@link apibara.starknet.v1alpha2.L2ToL1MessageWithTransaction.verify|verify} messages.
3264
+ * @param message L2ToL1MessageWithTransaction message or plain object to encode
3265
+ * @param [writer] Writer to encode to
3266
+ * @returns Writer
3267
+ */
3268
+ public static encode(message: apibara.starknet.v1alpha2.IL2ToL1MessageWithTransaction, writer?: $protobuf.Writer): $protobuf.Writer;
3269
+
3270
+ /**
3271
+ * Encodes the specified L2ToL1MessageWithTransaction message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.L2ToL1MessageWithTransaction.verify|verify} messages.
3272
+ * @param message L2ToL1MessageWithTransaction message or plain object to encode
3273
+ * @param [writer] Writer to encode to
3274
+ * @returns Writer
3275
+ */
3276
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IL2ToL1MessageWithTransaction, writer?: $protobuf.Writer): $protobuf.Writer;
3277
+
3278
+ /**
3279
+ * Decodes a L2ToL1MessageWithTransaction message from the specified reader or buffer.
3280
+ * @param reader Reader or buffer to decode from
3281
+ * @param [length] Message length if known beforehand
3282
+ * @returns L2ToL1MessageWithTransaction
3283
+ * @throws {Error} If the payload is not a reader or valid buffer
3284
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3285
+ */
3286
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.L2ToL1MessageWithTransaction;
3287
+
3288
+ /**
3289
+ * Decodes a L2ToL1MessageWithTransaction message from the specified reader or buffer, length delimited.
3290
+ * @param reader Reader or buffer to decode from
3291
+ * @returns L2ToL1MessageWithTransaction
3292
+ * @throws {Error} If the payload is not a reader or valid buffer
3293
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3294
+ */
3295
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.L2ToL1MessageWithTransaction;
3296
+
3297
+ /**
3298
+ * Verifies a L2ToL1MessageWithTransaction message.
3299
+ * @param message Plain object to verify
3300
+ * @returns `null` if valid, otherwise the reason why it is not
3301
+ */
3302
+ public static verify(message: { [k: string]: any }): (string|null);
3303
+
3304
+ /**
3305
+ * Creates a L2ToL1MessageWithTransaction message from a plain object. Also converts values to their respective internal types.
3306
+ * @param object Plain object
3307
+ * @returns L2ToL1MessageWithTransaction
3308
+ */
3309
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.L2ToL1MessageWithTransaction;
3310
+
3311
+ /**
3312
+ * Creates a plain object from a L2ToL1MessageWithTransaction message. Also converts values to other types if specified.
3313
+ * @param message L2ToL1MessageWithTransaction
3314
+ * @param [options] Conversion options
3315
+ * @returns Plain object
3316
+ */
3317
+ public static toObject(message: apibara.starknet.v1alpha2.L2ToL1MessageWithTransaction, options?: $protobuf.IConversionOptions): { [k: string]: any };
3318
+
3319
+ /**
3320
+ * Converts this L2ToL1MessageWithTransaction to JSON.
3321
+ * @returns JSON object
3322
+ */
3323
+ public toJSON(): { [k: string]: any };
3324
+
3325
+ /**
3326
+ * Gets the default type url for L2ToL1MessageWithTransaction
3327
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
3328
+ * @returns The default type url
3329
+ */
3330
+ public static getTypeUrl(typeUrlPrefix?: string): string;
3331
+ }
3332
+
3333
+ /** Properties of a L2ToL1Message. */
3334
+ interface IL2ToL1Message {
3335
+
3336
+ /** L2ToL1Message toAddress */
3337
+ toAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
3338
+
3339
+ /** L2ToL1Message payload */
3340
+ payload?: (apibara.starknet.v1alpha2.IFieldElement[]|null);
3341
+ }
3342
+
3343
+ /** Represents a L2ToL1Message. */
3344
+ class L2ToL1Message implements IL2ToL1Message {
3345
+
3346
+ /**
3347
+ * Constructs a new L2ToL1Message.
3348
+ * @param [properties] Properties to set
3349
+ */
3350
+ constructor(properties?: apibara.starknet.v1alpha2.IL2ToL1Message);
3351
+
3352
+ /** L2ToL1Message toAddress. */
3353
+ public toAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
3354
+
3355
+ /** L2ToL1Message payload. */
3356
+ public payload: apibara.starknet.v1alpha2.IFieldElement[];
3357
+
3358
+ /**
3359
+ * Creates a new L2ToL1Message instance using the specified properties.
3360
+ * @param [properties] Properties to set
3361
+ * @returns L2ToL1Message instance
3362
+ */
3363
+ public static create(properties?: apibara.starknet.v1alpha2.IL2ToL1Message): apibara.starknet.v1alpha2.L2ToL1Message;
3364
+
3365
+ /**
3366
+ * Encodes the specified L2ToL1Message message. Does not implicitly {@link apibara.starknet.v1alpha2.L2ToL1Message.verify|verify} messages.
3367
+ * @param message L2ToL1Message message or plain object to encode
3368
+ * @param [writer] Writer to encode to
3369
+ * @returns Writer
3370
+ */
3371
+ public static encode(message: apibara.starknet.v1alpha2.IL2ToL1Message, writer?: $protobuf.Writer): $protobuf.Writer;
3372
+
3373
+ /**
3374
+ * Encodes the specified L2ToL1Message message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.L2ToL1Message.verify|verify} messages.
3375
+ * @param message L2ToL1Message message or plain object to encode
3376
+ * @param [writer] Writer to encode to
3377
+ * @returns Writer
3378
+ */
3379
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IL2ToL1Message, writer?: $protobuf.Writer): $protobuf.Writer;
3380
+
3381
+ /**
3382
+ * Decodes a L2ToL1Message message from the specified reader or buffer.
3383
+ * @param reader Reader or buffer to decode from
3384
+ * @param [length] Message length if known beforehand
3385
+ * @returns L2ToL1Message
3386
+ * @throws {Error} If the payload is not a reader or valid buffer
3387
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3388
+ */
3389
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.L2ToL1Message;
3390
+
3391
+ /**
3392
+ * Decodes a L2ToL1Message message from the specified reader or buffer, length delimited.
3393
+ * @param reader Reader or buffer to decode from
3394
+ * @returns L2ToL1Message
3395
+ * @throws {Error} If the payload is not a reader or valid buffer
3396
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3397
+ */
3398
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.L2ToL1Message;
3399
+
3400
+ /**
3401
+ * Verifies a L2ToL1Message message.
3402
+ * @param message Plain object to verify
3403
+ * @returns `null` if valid, otherwise the reason why it is not
3404
+ */
3405
+ public static verify(message: { [k: string]: any }): (string|null);
3406
+
3407
+ /**
3408
+ * Creates a L2ToL1Message message from a plain object. Also converts values to their respective internal types.
3409
+ * @param object Plain object
3410
+ * @returns L2ToL1Message
3411
+ */
3412
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.L2ToL1Message;
3413
+
3414
+ /**
3415
+ * Creates a plain object from a L2ToL1Message message. Also converts values to other types if specified.
3416
+ * @param message L2ToL1Message
3417
+ * @param [options] Conversion options
3418
+ * @returns Plain object
3419
+ */
3420
+ public static toObject(message: apibara.starknet.v1alpha2.L2ToL1Message, options?: $protobuf.IConversionOptions): { [k: string]: any };
3421
+
3422
+ /**
3423
+ * Converts this L2ToL1Message to JSON.
3424
+ * @returns JSON object
3425
+ */
3426
+ public toJSON(): { [k: string]: any };
3427
+
3428
+ /**
3429
+ * Gets the default type url for L2ToL1Message
3430
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
3431
+ * @returns The default type url
3432
+ */
3433
+ public static getTypeUrl(typeUrlPrefix?: string): string;
3434
+ }
3435
+
3436
+ /** Properties of an EventWithTransaction. */
3437
+ interface IEventWithTransaction {
3438
+
3439
+ /** EventWithTransaction transaction */
3440
+ transaction?: (apibara.starknet.v1alpha2.ITransaction|null);
3441
+
3442
+ /** EventWithTransaction receipt */
3443
+ receipt?: (apibara.starknet.v1alpha2.ITransactionReceipt|null);
3444
+
3445
+ /** EventWithTransaction event */
3446
+ event?: (apibara.starknet.v1alpha2.IEvent|null);
3447
+ }
3448
+
3449
+ /** Represents an EventWithTransaction. */
3450
+ class EventWithTransaction implements IEventWithTransaction {
3451
+
3452
+ /**
3453
+ * Constructs a new EventWithTransaction.
3454
+ * @param [properties] Properties to set
3455
+ */
3456
+ constructor(properties?: apibara.starknet.v1alpha2.IEventWithTransaction);
3457
+
3458
+ /** EventWithTransaction transaction. */
3459
+ public transaction?: (apibara.starknet.v1alpha2.ITransaction|null);
3460
+
3461
+ /** EventWithTransaction receipt. */
3462
+ public receipt?: (apibara.starknet.v1alpha2.ITransactionReceipt|null);
3463
+
3464
+ /** EventWithTransaction event. */
3465
+ public event?: (apibara.starknet.v1alpha2.IEvent|null);
3466
+
3467
+ /**
3468
+ * Creates a new EventWithTransaction instance using the specified properties.
3469
+ * @param [properties] Properties to set
3470
+ * @returns EventWithTransaction instance
3471
+ */
3472
+ public static create(properties?: apibara.starknet.v1alpha2.IEventWithTransaction): apibara.starknet.v1alpha2.EventWithTransaction;
3473
+
3474
+ /**
3475
+ * Encodes the specified EventWithTransaction message. Does not implicitly {@link apibara.starknet.v1alpha2.EventWithTransaction.verify|verify} messages.
3476
+ * @param message EventWithTransaction message or plain object to encode
3477
+ * @param [writer] Writer to encode to
3478
+ * @returns Writer
3479
+ */
3480
+ public static encode(message: apibara.starknet.v1alpha2.IEventWithTransaction, writer?: $protobuf.Writer): $protobuf.Writer;
3481
+
3482
+ /**
3483
+ * Encodes the specified EventWithTransaction message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.EventWithTransaction.verify|verify} messages.
3484
+ * @param message EventWithTransaction message or plain object to encode
3485
+ * @param [writer] Writer to encode to
3486
+ * @returns Writer
3487
+ */
3488
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IEventWithTransaction, writer?: $protobuf.Writer): $protobuf.Writer;
3489
+
3490
+ /**
3491
+ * Decodes an EventWithTransaction message from the specified reader or buffer.
3492
+ * @param reader Reader or buffer to decode from
3493
+ * @param [length] Message length if known beforehand
3494
+ * @returns EventWithTransaction
3495
+ * @throws {Error} If the payload is not a reader or valid buffer
3496
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3497
+ */
3498
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.EventWithTransaction;
3499
+
3500
+ /**
3501
+ * Decodes an EventWithTransaction message from the specified reader or buffer, length delimited.
3502
+ * @param reader Reader or buffer to decode from
3503
+ * @returns EventWithTransaction
3504
+ * @throws {Error} If the payload is not a reader or valid buffer
3505
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3506
+ */
3507
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.EventWithTransaction;
3508
+
3509
+ /**
3510
+ * Verifies an EventWithTransaction message.
3511
+ * @param message Plain object to verify
3512
+ * @returns `null` if valid, otherwise the reason why it is not
3513
+ */
3514
+ public static verify(message: { [k: string]: any }): (string|null);
3515
+
3516
+ /**
3517
+ * Creates an EventWithTransaction message from a plain object. Also converts values to their respective internal types.
3518
+ * @param object Plain object
3519
+ * @returns EventWithTransaction
3520
+ */
3521
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.EventWithTransaction;
3522
+
3523
+ /**
3524
+ * Creates a plain object from an EventWithTransaction message. Also converts values to other types if specified.
3525
+ * @param message EventWithTransaction
3526
+ * @param [options] Conversion options
3527
+ * @returns Plain object
3528
+ */
3529
+ public static toObject(message: apibara.starknet.v1alpha2.EventWithTransaction, options?: $protobuf.IConversionOptions): { [k: string]: any };
3530
+
3531
+ /**
3532
+ * Converts this EventWithTransaction to JSON.
3533
+ * @returns JSON object
3534
+ */
3535
+ public toJSON(): { [k: string]: any };
3536
+
3537
+ /**
3538
+ * Gets the default type url for EventWithTransaction
3539
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
3540
+ * @returns The default type url
3541
+ */
3542
+ public static getTypeUrl(typeUrlPrefix?: string): string;
3543
+ }
3544
+
3545
+ /** Properties of an Event. */
3546
+ interface IEvent {
3547
+
3548
+ /** Event fromAddress */
3549
+ fromAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
3550
+
3551
+ /** Event keys */
3552
+ keys?: (apibara.starknet.v1alpha2.IFieldElement[]|null);
3553
+
3554
+ /** Event data */
3555
+ data?: (apibara.starknet.v1alpha2.IFieldElement[]|null);
3556
+ }
3557
+
3558
+ /** Represents an Event. */
3559
+ class Event implements IEvent {
3560
+
3561
+ /**
3562
+ * Constructs a new Event.
3563
+ * @param [properties] Properties to set
3564
+ */
3565
+ constructor(properties?: apibara.starknet.v1alpha2.IEvent);
3566
+
3567
+ /** Event fromAddress. */
3568
+ public fromAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
3569
+
3570
+ /** Event keys. */
3571
+ public keys: apibara.starknet.v1alpha2.IFieldElement[];
3572
+
3573
+ /** Event data. */
3574
+ public data: apibara.starknet.v1alpha2.IFieldElement[];
3575
+
3576
+ /**
3577
+ * Creates a new Event instance using the specified properties.
3578
+ * @param [properties] Properties to set
3579
+ * @returns Event instance
3580
+ */
3581
+ public static create(properties?: apibara.starknet.v1alpha2.IEvent): apibara.starknet.v1alpha2.Event;
3582
+
3583
+ /**
3584
+ * Encodes the specified Event message. Does not implicitly {@link apibara.starknet.v1alpha2.Event.verify|verify} messages.
3585
+ * @param message Event message or plain object to encode
3586
+ * @param [writer] Writer to encode to
3587
+ * @returns Writer
3588
+ */
3589
+ public static encode(message: apibara.starknet.v1alpha2.IEvent, writer?: $protobuf.Writer): $protobuf.Writer;
3590
+
3591
+ /**
3592
+ * Encodes the specified Event message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.Event.verify|verify} messages.
3593
+ * @param message Event message or plain object to encode
3594
+ * @param [writer] Writer to encode to
3595
+ * @returns Writer
3596
+ */
3597
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IEvent, writer?: $protobuf.Writer): $protobuf.Writer;
3598
+
3599
+ /**
3600
+ * Decodes an Event message from the specified reader or buffer.
3601
+ * @param reader Reader or buffer to decode from
3602
+ * @param [length] Message length if known beforehand
3603
+ * @returns Event
3604
+ * @throws {Error} If the payload is not a reader or valid buffer
3605
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3606
+ */
3607
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.Event;
3608
+
3609
+ /**
3610
+ * Decodes an Event message from the specified reader or buffer, length delimited.
3611
+ * @param reader Reader or buffer to decode from
3612
+ * @returns Event
3613
+ * @throws {Error} If the payload is not a reader or valid buffer
3614
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3615
+ */
3616
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.Event;
3617
+
3618
+ /**
3619
+ * Verifies an Event message.
3620
+ * @param message Plain object to verify
3621
+ * @returns `null` if valid, otherwise the reason why it is not
3622
+ */
3623
+ public static verify(message: { [k: string]: any }): (string|null);
3624
+
3625
+ /**
3626
+ * Creates an Event message from a plain object. Also converts values to their respective internal types.
3627
+ * @param object Plain object
3628
+ * @returns Event
3629
+ */
3630
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.Event;
3631
+
3632
+ /**
3633
+ * Creates a plain object from an Event message. Also converts values to other types if specified.
3634
+ * @param message Event
3635
+ * @param [options] Conversion options
3636
+ * @returns Plain object
3637
+ */
3638
+ public static toObject(message: apibara.starknet.v1alpha2.Event, options?: $protobuf.IConversionOptions): { [k: string]: any };
3639
+
3640
+ /**
3641
+ * Converts this Event to JSON.
3642
+ * @returns JSON object
3643
+ */
3644
+ public toJSON(): { [k: string]: any };
3645
+
3646
+ /**
3647
+ * Gets the default type url for Event
3648
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
3649
+ * @returns The default type url
3650
+ */
3651
+ public static getTypeUrl(typeUrlPrefix?: string): string;
3652
+ }
3653
+
3654
+ /** Properties of a StateUpdate. */
3655
+ interface IStateUpdate {
3656
+
3657
+ /** StateUpdate newRoot */
3658
+ newRoot?: (apibara.starknet.v1alpha2.IFieldElement|null);
3659
+
3660
+ /** StateUpdate oldRoot */
3661
+ oldRoot?: (apibara.starknet.v1alpha2.IFieldElement|null);
3662
+
3663
+ /** StateUpdate stateDiff */
3664
+ stateDiff?: (apibara.starknet.v1alpha2.IStateDiff|null);
3665
+ }
3666
+
3667
+ /** Represents a StateUpdate. */
3668
+ class StateUpdate implements IStateUpdate {
3669
+
3670
+ /**
3671
+ * Constructs a new StateUpdate.
3672
+ * @param [properties] Properties to set
3673
+ */
3674
+ constructor(properties?: apibara.starknet.v1alpha2.IStateUpdate);
3675
+
3676
+ /** StateUpdate newRoot. */
3677
+ public newRoot?: (apibara.starknet.v1alpha2.IFieldElement|null);
3678
+
3679
+ /** StateUpdate oldRoot. */
3680
+ public oldRoot?: (apibara.starknet.v1alpha2.IFieldElement|null);
3681
+
3682
+ /** StateUpdate stateDiff. */
3683
+ public stateDiff?: (apibara.starknet.v1alpha2.IStateDiff|null);
3684
+
3685
+ /**
3686
+ * Creates a new StateUpdate instance using the specified properties.
3687
+ * @param [properties] Properties to set
3688
+ * @returns StateUpdate instance
3689
+ */
3690
+ public static create(properties?: apibara.starknet.v1alpha2.IStateUpdate): apibara.starknet.v1alpha2.StateUpdate;
3691
+
3692
+ /**
3693
+ * Encodes the specified StateUpdate message. Does not implicitly {@link apibara.starknet.v1alpha2.StateUpdate.verify|verify} messages.
3694
+ * @param message StateUpdate message or plain object to encode
3695
+ * @param [writer] Writer to encode to
3696
+ * @returns Writer
3697
+ */
3698
+ public static encode(message: apibara.starknet.v1alpha2.IStateUpdate, writer?: $protobuf.Writer): $protobuf.Writer;
3699
+
3700
+ /**
3701
+ * Encodes the specified StateUpdate message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.StateUpdate.verify|verify} messages.
3702
+ * @param message StateUpdate message or plain object to encode
3703
+ * @param [writer] Writer to encode to
3704
+ * @returns Writer
3705
+ */
3706
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IStateUpdate, writer?: $protobuf.Writer): $protobuf.Writer;
3707
+
3708
+ /**
3709
+ * Decodes a StateUpdate message from the specified reader or buffer.
3710
+ * @param reader Reader or buffer to decode from
3711
+ * @param [length] Message length if known beforehand
3712
+ * @returns StateUpdate
3713
+ * @throws {Error} If the payload is not a reader or valid buffer
3714
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3715
+ */
3716
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.StateUpdate;
3717
+
3718
+ /**
3719
+ * Decodes a StateUpdate message from the specified reader or buffer, length delimited.
3720
+ * @param reader Reader or buffer to decode from
3721
+ * @returns StateUpdate
3722
+ * @throws {Error} If the payload is not a reader or valid buffer
3723
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3724
+ */
3725
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.StateUpdate;
3726
+
3727
+ /**
3728
+ * Verifies a StateUpdate message.
3729
+ * @param message Plain object to verify
3730
+ * @returns `null` if valid, otherwise the reason why it is not
3731
+ */
3732
+ public static verify(message: { [k: string]: any }): (string|null);
3733
+
3734
+ /**
3735
+ * Creates a StateUpdate message from a plain object. Also converts values to their respective internal types.
3736
+ * @param object Plain object
3737
+ * @returns StateUpdate
3738
+ */
3739
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.StateUpdate;
3740
+
3741
+ /**
3742
+ * Creates a plain object from a StateUpdate message. Also converts values to other types if specified.
3743
+ * @param message StateUpdate
3744
+ * @param [options] Conversion options
3745
+ * @returns Plain object
3746
+ */
3747
+ public static toObject(message: apibara.starknet.v1alpha2.StateUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any };
3748
+
3749
+ /**
3750
+ * Converts this StateUpdate to JSON.
3751
+ * @returns JSON object
3752
+ */
3753
+ public toJSON(): { [k: string]: any };
3754
+
3755
+ /**
3756
+ * Gets the default type url for StateUpdate
3757
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
3758
+ * @returns The default type url
3759
+ */
3760
+ public static getTypeUrl(typeUrlPrefix?: string): string;
3761
+ }
3762
+
3763
+ /** Properties of a StateDiff. */
3764
+ interface IStateDiff {
3765
+
3766
+ /** StateDiff storageDiffs */
3767
+ storageDiffs?: (apibara.starknet.v1alpha2.IStorageDiff[]|null);
3768
+
3769
+ /** StateDiff declaredContracts */
3770
+ declaredContracts?: (apibara.starknet.v1alpha2.IDeclaredContract[]|null);
3771
+
3772
+ /** StateDiff deployedContracts */
3773
+ deployedContracts?: (apibara.starknet.v1alpha2.IDeployedContract[]|null);
3774
+
3775
+ /** StateDiff nonces */
3776
+ nonces?: (apibara.starknet.v1alpha2.INonceUpdate[]|null);
3777
+ }
3778
+
3779
+ /** Represents a StateDiff. */
3780
+ class StateDiff implements IStateDiff {
3781
+
3782
+ /**
3783
+ * Constructs a new StateDiff.
3784
+ * @param [properties] Properties to set
3785
+ */
3786
+ constructor(properties?: apibara.starknet.v1alpha2.IStateDiff);
3787
+
3788
+ /** StateDiff storageDiffs. */
3789
+ public storageDiffs: apibara.starknet.v1alpha2.IStorageDiff[];
3790
+
3791
+ /** StateDiff declaredContracts. */
3792
+ public declaredContracts: apibara.starknet.v1alpha2.IDeclaredContract[];
3793
+
3794
+ /** StateDiff deployedContracts. */
3795
+ public deployedContracts: apibara.starknet.v1alpha2.IDeployedContract[];
3796
+
3797
+ /** StateDiff nonces. */
3798
+ public nonces: apibara.starknet.v1alpha2.INonceUpdate[];
3799
+
3800
+ /**
3801
+ * Creates a new StateDiff instance using the specified properties.
3802
+ * @param [properties] Properties to set
3803
+ * @returns StateDiff instance
3804
+ */
3805
+ public static create(properties?: apibara.starknet.v1alpha2.IStateDiff): apibara.starknet.v1alpha2.StateDiff;
3806
+
3807
+ /**
3808
+ * Encodes the specified StateDiff message. Does not implicitly {@link apibara.starknet.v1alpha2.StateDiff.verify|verify} messages.
3809
+ * @param message StateDiff message or plain object to encode
3810
+ * @param [writer] Writer to encode to
3811
+ * @returns Writer
3812
+ */
3813
+ public static encode(message: apibara.starknet.v1alpha2.IStateDiff, writer?: $protobuf.Writer): $protobuf.Writer;
3814
+
3815
+ /**
3816
+ * Encodes the specified StateDiff message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.StateDiff.verify|verify} messages.
3817
+ * @param message StateDiff message or plain object to encode
3818
+ * @param [writer] Writer to encode to
3819
+ * @returns Writer
3820
+ */
3821
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IStateDiff, writer?: $protobuf.Writer): $protobuf.Writer;
3822
+
3823
+ /**
3824
+ * Decodes a StateDiff message from the specified reader or buffer.
3825
+ * @param reader Reader or buffer to decode from
3826
+ * @param [length] Message length if known beforehand
3827
+ * @returns StateDiff
3828
+ * @throws {Error} If the payload is not a reader or valid buffer
3829
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3830
+ */
3831
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.StateDiff;
3832
+
3833
+ /**
3834
+ * Decodes a StateDiff message from the specified reader or buffer, length delimited.
3835
+ * @param reader Reader or buffer to decode from
3836
+ * @returns StateDiff
3837
+ * @throws {Error} If the payload is not a reader or valid buffer
3838
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3839
+ */
3840
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.StateDiff;
3841
+
3842
+ /**
3843
+ * Verifies a StateDiff message.
3844
+ * @param message Plain object to verify
3845
+ * @returns `null` if valid, otherwise the reason why it is not
3846
+ */
3847
+ public static verify(message: { [k: string]: any }): (string|null);
3848
+
3849
+ /**
3850
+ * Creates a StateDiff message from a plain object. Also converts values to their respective internal types.
3851
+ * @param object Plain object
3852
+ * @returns StateDiff
3853
+ */
3854
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.StateDiff;
3855
+
3856
+ /**
3857
+ * Creates a plain object from a StateDiff message. Also converts values to other types if specified.
3858
+ * @param message StateDiff
3859
+ * @param [options] Conversion options
3860
+ * @returns Plain object
3861
+ */
3862
+ public static toObject(message: apibara.starknet.v1alpha2.StateDiff, options?: $protobuf.IConversionOptions): { [k: string]: any };
3863
+
3864
+ /**
3865
+ * Converts this StateDiff to JSON.
3866
+ * @returns JSON object
3867
+ */
3868
+ public toJSON(): { [k: string]: any };
3869
+
3870
+ /**
3871
+ * Gets the default type url for StateDiff
3872
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
3873
+ * @returns The default type url
3874
+ */
3875
+ public static getTypeUrl(typeUrlPrefix?: string): string;
3876
+ }
3877
+
3878
+ /** Properties of a StorageDiff. */
3879
+ interface IStorageDiff {
3880
+
3881
+ /** StorageDiff contractAddress */
3882
+ contractAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
3883
+
3884
+ /** StorageDiff storageEntries */
3885
+ storageEntries?: (apibara.starknet.v1alpha2.IStorageEntry[]|null);
3886
+ }
3887
+
3888
+ /** Represents a StorageDiff. */
3889
+ class StorageDiff implements IStorageDiff {
3890
+
3891
+ /**
3892
+ * Constructs a new StorageDiff.
3893
+ * @param [properties] Properties to set
3894
+ */
3895
+ constructor(properties?: apibara.starknet.v1alpha2.IStorageDiff);
3896
+
3897
+ /** StorageDiff contractAddress. */
3898
+ public contractAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
3899
+
3900
+ /** StorageDiff storageEntries. */
3901
+ public storageEntries: apibara.starknet.v1alpha2.IStorageEntry[];
3902
+
3903
+ /**
3904
+ * Creates a new StorageDiff instance using the specified properties.
3905
+ * @param [properties] Properties to set
3906
+ * @returns StorageDiff instance
3907
+ */
3908
+ public static create(properties?: apibara.starknet.v1alpha2.IStorageDiff): apibara.starknet.v1alpha2.StorageDiff;
3909
+
3910
+ /**
3911
+ * Encodes the specified StorageDiff message. Does not implicitly {@link apibara.starknet.v1alpha2.StorageDiff.verify|verify} messages.
3912
+ * @param message StorageDiff message or plain object to encode
3913
+ * @param [writer] Writer to encode to
3914
+ * @returns Writer
3915
+ */
3916
+ public static encode(message: apibara.starknet.v1alpha2.IStorageDiff, writer?: $protobuf.Writer): $protobuf.Writer;
3917
+
3918
+ /**
3919
+ * Encodes the specified StorageDiff message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.StorageDiff.verify|verify} messages.
3920
+ * @param message StorageDiff message or plain object to encode
3921
+ * @param [writer] Writer to encode to
3922
+ * @returns Writer
3923
+ */
3924
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IStorageDiff, writer?: $protobuf.Writer): $protobuf.Writer;
3925
+
3926
+ /**
3927
+ * Decodes a StorageDiff message from the specified reader or buffer.
3928
+ * @param reader Reader or buffer to decode from
3929
+ * @param [length] Message length if known beforehand
3930
+ * @returns StorageDiff
3931
+ * @throws {Error} If the payload is not a reader or valid buffer
3932
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3933
+ */
3934
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.StorageDiff;
3935
+
3936
+ /**
3937
+ * Decodes a StorageDiff message from the specified reader or buffer, length delimited.
3938
+ * @param reader Reader or buffer to decode from
3939
+ * @returns StorageDiff
3940
+ * @throws {Error} If the payload is not a reader or valid buffer
3941
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3942
+ */
3943
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.StorageDiff;
3944
+
3945
+ /**
3946
+ * Verifies a StorageDiff message.
3947
+ * @param message Plain object to verify
3948
+ * @returns `null` if valid, otherwise the reason why it is not
3949
+ */
3950
+ public static verify(message: { [k: string]: any }): (string|null);
3951
+
3952
+ /**
3953
+ * Creates a StorageDiff message from a plain object. Also converts values to their respective internal types.
3954
+ * @param object Plain object
3955
+ * @returns StorageDiff
3956
+ */
3957
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.StorageDiff;
3958
+
3959
+ /**
3960
+ * Creates a plain object from a StorageDiff message. Also converts values to other types if specified.
3961
+ * @param message StorageDiff
3962
+ * @param [options] Conversion options
3963
+ * @returns Plain object
3964
+ */
3965
+ public static toObject(message: apibara.starknet.v1alpha2.StorageDiff, options?: $protobuf.IConversionOptions): { [k: string]: any };
3966
+
3967
+ /**
3968
+ * Converts this StorageDiff to JSON.
3969
+ * @returns JSON object
3970
+ */
3971
+ public toJSON(): { [k: string]: any };
3972
+
3973
+ /**
3974
+ * Gets the default type url for StorageDiff
3975
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
3976
+ * @returns The default type url
3977
+ */
3978
+ public static getTypeUrl(typeUrlPrefix?: string): string;
3979
+ }
3980
+
3981
+ /** Properties of a StorageEntry. */
3982
+ interface IStorageEntry {
3983
+
3984
+ /** StorageEntry key */
3985
+ key?: (apibara.starknet.v1alpha2.IFieldElement|null);
3986
+
3987
+ /** StorageEntry value */
3988
+ value?: (apibara.starknet.v1alpha2.IFieldElement|null);
3989
+ }
3990
+
3991
+ /** Represents a StorageEntry. */
3992
+ class StorageEntry implements IStorageEntry {
3993
+
3994
+ /**
3995
+ * Constructs a new StorageEntry.
3996
+ * @param [properties] Properties to set
3997
+ */
3998
+ constructor(properties?: apibara.starknet.v1alpha2.IStorageEntry);
3999
+
4000
+ /** StorageEntry key. */
4001
+ public key?: (apibara.starknet.v1alpha2.IFieldElement|null);
4002
+
4003
+ /** StorageEntry value. */
4004
+ public value?: (apibara.starknet.v1alpha2.IFieldElement|null);
4005
+
4006
+ /**
4007
+ * Creates a new StorageEntry instance using the specified properties.
4008
+ * @param [properties] Properties to set
4009
+ * @returns StorageEntry instance
4010
+ */
4011
+ public static create(properties?: apibara.starknet.v1alpha2.IStorageEntry): apibara.starknet.v1alpha2.StorageEntry;
4012
+
4013
+ /**
4014
+ * Encodes the specified StorageEntry message. Does not implicitly {@link apibara.starknet.v1alpha2.StorageEntry.verify|verify} messages.
4015
+ * @param message StorageEntry message or plain object to encode
4016
+ * @param [writer] Writer to encode to
4017
+ * @returns Writer
4018
+ */
4019
+ public static encode(message: apibara.starknet.v1alpha2.IStorageEntry, writer?: $protobuf.Writer): $protobuf.Writer;
4020
+
4021
+ /**
4022
+ * Encodes the specified StorageEntry message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.StorageEntry.verify|verify} messages.
4023
+ * @param message StorageEntry message or plain object to encode
4024
+ * @param [writer] Writer to encode to
4025
+ * @returns Writer
4026
+ */
4027
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IStorageEntry, writer?: $protobuf.Writer): $protobuf.Writer;
4028
+
4029
+ /**
4030
+ * Decodes a StorageEntry message from the specified reader or buffer.
4031
+ * @param reader Reader or buffer to decode from
4032
+ * @param [length] Message length if known beforehand
4033
+ * @returns StorageEntry
4034
+ * @throws {Error} If the payload is not a reader or valid buffer
4035
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4036
+ */
4037
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.StorageEntry;
4038
+
4039
+ /**
4040
+ * Decodes a StorageEntry message from the specified reader or buffer, length delimited.
4041
+ * @param reader Reader or buffer to decode from
4042
+ * @returns StorageEntry
4043
+ * @throws {Error} If the payload is not a reader or valid buffer
4044
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4045
+ */
4046
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.StorageEntry;
4047
+
4048
+ /**
4049
+ * Verifies a StorageEntry message.
4050
+ * @param message Plain object to verify
4051
+ * @returns `null` if valid, otherwise the reason why it is not
4052
+ */
4053
+ public static verify(message: { [k: string]: any }): (string|null);
4054
+
4055
+ /**
4056
+ * Creates a StorageEntry message from a plain object. Also converts values to their respective internal types.
4057
+ * @param object Plain object
4058
+ * @returns StorageEntry
4059
+ */
4060
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.StorageEntry;
4061
+
4062
+ /**
4063
+ * Creates a plain object from a StorageEntry message. Also converts values to other types if specified.
4064
+ * @param message StorageEntry
4065
+ * @param [options] Conversion options
4066
+ * @returns Plain object
4067
+ */
4068
+ public static toObject(message: apibara.starknet.v1alpha2.StorageEntry, options?: $protobuf.IConversionOptions): { [k: string]: any };
4069
+
4070
+ /**
4071
+ * Converts this StorageEntry to JSON.
4072
+ * @returns JSON object
4073
+ */
4074
+ public toJSON(): { [k: string]: any };
4075
+
4076
+ /**
4077
+ * Gets the default type url for StorageEntry
4078
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
4079
+ * @returns The default type url
4080
+ */
4081
+ public static getTypeUrl(typeUrlPrefix?: string): string;
4082
+ }
4083
+
4084
+ /** Properties of a DeclaredContract. */
4085
+ interface IDeclaredContract {
4086
+
4087
+ /** DeclaredContract classHash */
4088
+ classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
4089
+ }
4090
+
4091
+ /** Represents a DeclaredContract. */
4092
+ class DeclaredContract implements IDeclaredContract {
4093
+
4094
+ /**
4095
+ * Constructs a new DeclaredContract.
4096
+ * @param [properties] Properties to set
4097
+ */
4098
+ constructor(properties?: apibara.starknet.v1alpha2.IDeclaredContract);
4099
+
4100
+ /** DeclaredContract classHash. */
4101
+ public classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
4102
+
4103
+ /**
4104
+ * Creates a new DeclaredContract instance using the specified properties.
4105
+ * @param [properties] Properties to set
4106
+ * @returns DeclaredContract instance
4107
+ */
4108
+ public static create(properties?: apibara.starknet.v1alpha2.IDeclaredContract): apibara.starknet.v1alpha2.DeclaredContract;
4109
+
4110
+ /**
4111
+ * Encodes the specified DeclaredContract message. Does not implicitly {@link apibara.starknet.v1alpha2.DeclaredContract.verify|verify} messages.
4112
+ * @param message DeclaredContract message or plain object to encode
4113
+ * @param [writer] Writer to encode to
4114
+ * @returns Writer
4115
+ */
4116
+ public static encode(message: apibara.starknet.v1alpha2.IDeclaredContract, writer?: $protobuf.Writer): $protobuf.Writer;
4117
+
4118
+ /**
4119
+ * Encodes the specified DeclaredContract message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.DeclaredContract.verify|verify} messages.
4120
+ * @param message DeclaredContract message or plain object to encode
4121
+ * @param [writer] Writer to encode to
4122
+ * @returns Writer
4123
+ */
4124
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IDeclaredContract, writer?: $protobuf.Writer): $protobuf.Writer;
4125
+
4126
+ /**
4127
+ * Decodes a DeclaredContract message from the specified reader or buffer.
4128
+ * @param reader Reader or buffer to decode from
4129
+ * @param [length] Message length if known beforehand
4130
+ * @returns DeclaredContract
4131
+ * @throws {Error} If the payload is not a reader or valid buffer
4132
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4133
+ */
4134
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.DeclaredContract;
4135
+
4136
+ /**
4137
+ * Decodes a DeclaredContract message from the specified reader or buffer, length delimited.
4138
+ * @param reader Reader or buffer to decode from
4139
+ * @returns DeclaredContract
4140
+ * @throws {Error} If the payload is not a reader or valid buffer
4141
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4142
+ */
4143
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.DeclaredContract;
4144
+
4145
+ /**
4146
+ * Verifies a DeclaredContract message.
4147
+ * @param message Plain object to verify
4148
+ * @returns `null` if valid, otherwise the reason why it is not
4149
+ */
4150
+ public static verify(message: { [k: string]: any }): (string|null);
4151
+
4152
+ /**
4153
+ * Creates a DeclaredContract message from a plain object. Also converts values to their respective internal types.
4154
+ * @param object Plain object
4155
+ * @returns DeclaredContract
4156
+ */
4157
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.DeclaredContract;
4158
+
4159
+ /**
4160
+ * Creates a plain object from a DeclaredContract message. Also converts values to other types if specified.
4161
+ * @param message DeclaredContract
4162
+ * @param [options] Conversion options
4163
+ * @returns Plain object
4164
+ */
4165
+ public static toObject(message: apibara.starknet.v1alpha2.DeclaredContract, options?: $protobuf.IConversionOptions): { [k: string]: any };
4166
+
4167
+ /**
4168
+ * Converts this DeclaredContract to JSON.
4169
+ * @returns JSON object
4170
+ */
4171
+ public toJSON(): { [k: string]: any };
4172
+
4173
+ /**
4174
+ * Gets the default type url for DeclaredContract
4175
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
4176
+ * @returns The default type url
4177
+ */
4178
+ public static getTypeUrl(typeUrlPrefix?: string): string;
4179
+ }
4180
+
4181
+ /** Properties of a DeployedContract. */
4182
+ interface IDeployedContract {
4183
+
4184
+ /** DeployedContract contractAddress */
4185
+ contractAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
4186
+
4187
+ /** DeployedContract classHash */
4188
+ classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
4189
+ }
4190
+
4191
+ /** Represents a DeployedContract. */
4192
+ class DeployedContract implements IDeployedContract {
4193
+
4194
+ /**
4195
+ * Constructs a new DeployedContract.
4196
+ * @param [properties] Properties to set
4197
+ */
4198
+ constructor(properties?: apibara.starknet.v1alpha2.IDeployedContract);
4199
+
4200
+ /** DeployedContract contractAddress. */
4201
+ public contractAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
4202
+
4203
+ /** DeployedContract classHash. */
4204
+ public classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
4205
+
4206
+ /**
4207
+ * Creates a new DeployedContract instance using the specified properties.
4208
+ * @param [properties] Properties to set
4209
+ * @returns DeployedContract instance
4210
+ */
4211
+ public static create(properties?: apibara.starknet.v1alpha2.IDeployedContract): apibara.starknet.v1alpha2.DeployedContract;
4212
+
4213
+ /**
4214
+ * Encodes the specified DeployedContract message. Does not implicitly {@link apibara.starknet.v1alpha2.DeployedContract.verify|verify} messages.
4215
+ * @param message DeployedContract message or plain object to encode
4216
+ * @param [writer] Writer to encode to
4217
+ * @returns Writer
4218
+ */
4219
+ public static encode(message: apibara.starknet.v1alpha2.IDeployedContract, writer?: $protobuf.Writer): $protobuf.Writer;
4220
+
4221
+ /**
4222
+ * Encodes the specified DeployedContract message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.DeployedContract.verify|verify} messages.
4223
+ * @param message DeployedContract message or plain object to encode
4224
+ * @param [writer] Writer to encode to
4225
+ * @returns Writer
4226
+ */
4227
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IDeployedContract, writer?: $protobuf.Writer): $protobuf.Writer;
4228
+
4229
+ /**
4230
+ * Decodes a DeployedContract message from the specified reader or buffer.
4231
+ * @param reader Reader or buffer to decode from
4232
+ * @param [length] Message length if known beforehand
4233
+ * @returns DeployedContract
4234
+ * @throws {Error} If the payload is not a reader or valid buffer
4235
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4236
+ */
4237
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.DeployedContract;
4238
+
4239
+ /**
4240
+ * Decodes a DeployedContract message from the specified reader or buffer, length delimited.
4241
+ * @param reader Reader or buffer to decode from
4242
+ * @returns DeployedContract
4243
+ * @throws {Error} If the payload is not a reader or valid buffer
4244
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4245
+ */
4246
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.DeployedContract;
4247
+
4248
+ /**
4249
+ * Verifies a DeployedContract message.
4250
+ * @param message Plain object to verify
4251
+ * @returns `null` if valid, otherwise the reason why it is not
4252
+ */
4253
+ public static verify(message: { [k: string]: any }): (string|null);
4254
+
4255
+ /**
4256
+ * Creates a DeployedContract message from a plain object. Also converts values to their respective internal types.
4257
+ * @param object Plain object
4258
+ * @returns DeployedContract
4259
+ */
4260
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.DeployedContract;
4261
+
4262
+ /**
4263
+ * Creates a plain object from a DeployedContract message. Also converts values to other types if specified.
4264
+ * @param message DeployedContract
4265
+ * @param [options] Conversion options
4266
+ * @returns Plain object
4267
+ */
4268
+ public static toObject(message: apibara.starknet.v1alpha2.DeployedContract, options?: $protobuf.IConversionOptions): { [k: string]: any };
4269
+
4270
+ /**
4271
+ * Converts this DeployedContract to JSON.
4272
+ * @returns JSON object
4273
+ */
4274
+ public toJSON(): { [k: string]: any };
4275
+
4276
+ /**
4277
+ * Gets the default type url for DeployedContract
4278
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
4279
+ * @returns The default type url
4280
+ */
4281
+ public static getTypeUrl(typeUrlPrefix?: string): string;
4282
+ }
4283
+
4284
+ /** Properties of a NonceUpdate. */
4285
+ interface INonceUpdate {
4286
+
4287
+ /** NonceUpdate contractAddress */
4288
+ contractAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
4289
+
4290
+ /** NonceUpdate nonce */
4291
+ nonce?: (apibara.starknet.v1alpha2.IFieldElement|null);
4292
+ }
4293
+
4294
+ /** Represents a NonceUpdate. */
4295
+ class NonceUpdate implements INonceUpdate {
4296
+
4297
+ /**
4298
+ * Constructs a new NonceUpdate.
4299
+ * @param [properties] Properties to set
4300
+ */
4301
+ constructor(properties?: apibara.starknet.v1alpha2.INonceUpdate);
4302
+
4303
+ /** NonceUpdate contractAddress. */
4304
+ public contractAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
4305
+
4306
+ /** NonceUpdate nonce. */
4307
+ public nonce?: (apibara.starknet.v1alpha2.IFieldElement|null);
4308
+
4309
+ /**
4310
+ * Creates a new NonceUpdate instance using the specified properties.
4311
+ * @param [properties] Properties to set
4312
+ * @returns NonceUpdate instance
4313
+ */
4314
+ public static create(properties?: apibara.starknet.v1alpha2.INonceUpdate): apibara.starknet.v1alpha2.NonceUpdate;
4315
+
4316
+ /**
4317
+ * Encodes the specified NonceUpdate message. Does not implicitly {@link apibara.starknet.v1alpha2.NonceUpdate.verify|verify} messages.
4318
+ * @param message NonceUpdate message or plain object to encode
4319
+ * @param [writer] Writer to encode to
4320
+ * @returns Writer
4321
+ */
4322
+ public static encode(message: apibara.starknet.v1alpha2.INonceUpdate, writer?: $protobuf.Writer): $protobuf.Writer;
4323
+
4324
+ /**
4325
+ * Encodes the specified NonceUpdate message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.NonceUpdate.verify|verify} messages.
4326
+ * @param message NonceUpdate message or plain object to encode
4327
+ * @param [writer] Writer to encode to
4328
+ * @returns Writer
4329
+ */
4330
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.INonceUpdate, writer?: $protobuf.Writer): $protobuf.Writer;
4331
+
4332
+ /**
4333
+ * Decodes a NonceUpdate message from the specified reader or buffer.
4334
+ * @param reader Reader or buffer to decode from
4335
+ * @param [length] Message length if known beforehand
4336
+ * @returns NonceUpdate
4337
+ * @throws {Error} If the payload is not a reader or valid buffer
4338
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4339
+ */
4340
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.NonceUpdate;
4341
+
4342
+ /**
4343
+ * Decodes a NonceUpdate message from the specified reader or buffer, length delimited.
4344
+ * @param reader Reader or buffer to decode from
4345
+ * @returns NonceUpdate
4346
+ * @throws {Error} If the payload is not a reader or valid buffer
4347
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4348
+ */
4349
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.NonceUpdate;
4350
+
4351
+ /**
4352
+ * Verifies a NonceUpdate message.
4353
+ * @param message Plain object to verify
4354
+ * @returns `null` if valid, otherwise the reason why it is not
4355
+ */
4356
+ public static verify(message: { [k: string]: any }): (string|null);
4357
+
4358
+ /**
4359
+ * Creates a NonceUpdate message from a plain object. Also converts values to their respective internal types.
4360
+ * @param object Plain object
4361
+ * @returns NonceUpdate
4362
+ */
4363
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.NonceUpdate;
4364
+
4365
+ /**
4366
+ * Creates a plain object from a NonceUpdate message. Also converts values to other types if specified.
4367
+ * @param message NonceUpdate
4368
+ * @param [options] Conversion options
4369
+ * @returns Plain object
4370
+ */
4371
+ public static toObject(message: apibara.starknet.v1alpha2.NonceUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any };
4372
+
4373
+ /**
4374
+ * Converts this NonceUpdate to JSON.
4375
+ * @returns JSON object
4376
+ */
4377
+ public toJSON(): { [k: string]: any };
4378
+
4379
+ /**
4380
+ * Gets the default type url for NonceUpdate
4381
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
4382
+ * @returns The default type url
4383
+ */
4384
+ public static getTypeUrl(typeUrlPrefix?: string): string;
4385
+ }
4386
+ }
4387
+ }
4388
+ }
4389
+
4390
+ /** Namespace google. */
4391
+ export namespace google {
4392
+
4393
+ /** Namespace protobuf. */
4394
+ namespace protobuf {
4395
+
4396
+ /** Properties of a Timestamp. */
4397
+ interface ITimestamp {
4398
+
4399
+ /** Timestamp seconds */
4400
+ seconds?: (number|Long|null);
4401
+
4402
+ /** Timestamp nanos */
4403
+ nanos?: (number|null);
4404
+ }
4405
+
4406
+ /** Represents a Timestamp. */
4407
+ class Timestamp implements ITimestamp {
4408
+
4409
+ /**
4410
+ * Constructs a new Timestamp.
4411
+ * @param [properties] Properties to set
4412
+ */
4413
+ constructor(properties?: google.protobuf.ITimestamp);
4414
+
4415
+ /** Timestamp seconds. */
4416
+ public seconds: (number|Long);
4417
+
4418
+ /** Timestamp nanos. */
4419
+ public nanos: number;
4420
+
4421
+ /**
4422
+ * Creates a new Timestamp instance using the specified properties.
4423
+ * @param [properties] Properties to set
4424
+ * @returns Timestamp instance
4425
+ */
4426
+ public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
4427
+
4428
+ /**
4429
+ * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
4430
+ * @param message Timestamp message or plain object to encode
4431
+ * @param [writer] Writer to encode to
4432
+ * @returns Writer
4433
+ */
4434
+ public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
4435
+
4436
+ /**
4437
+ * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
4438
+ * @param message Timestamp message or plain object to encode
4439
+ * @param [writer] Writer to encode to
4440
+ * @returns Writer
4441
+ */
4442
+ public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
4443
+
4444
+ /**
4445
+ * Decodes a Timestamp message from the specified reader or buffer.
4446
+ * @param reader Reader or buffer to decode from
4447
+ * @param [length] Message length if known beforehand
4448
+ * @returns Timestamp
4449
+ * @throws {Error} If the payload is not a reader or valid buffer
4450
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4451
+ */
4452
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
4453
+
4454
+ /**
4455
+ * Decodes a Timestamp message from the specified reader or buffer, length delimited.
4456
+ * @param reader Reader or buffer to decode from
4457
+ * @returns Timestamp
4458
+ * @throws {Error} If the payload is not a reader or valid buffer
4459
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4460
+ */
4461
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
4462
+
4463
+ /**
4464
+ * Verifies a Timestamp message.
4465
+ * @param message Plain object to verify
4466
+ * @returns `null` if valid, otherwise the reason why it is not
4467
+ */
4468
+ public static verify(message: { [k: string]: any }): (string|null);
4469
+
4470
+ /**
4471
+ * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
4472
+ * @param object Plain object
4473
+ * @returns Timestamp
4474
+ */
4475
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
4476
+
4477
+ /**
4478
+ * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
4479
+ * @param message Timestamp
4480
+ * @param [options] Conversion options
4481
+ * @returns Plain object
4482
+ */
4483
+ public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
4484
+
4485
+ /**
4486
+ * Converts this Timestamp to JSON.
4487
+ * @returns JSON object
4488
+ */
4489
+ public toJSON(): { [k: string]: any };
4490
+
4491
+ /**
4492
+ * Gets the default type url for Timestamp
4493
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
4494
+ * @returns The default type url
4495
+ */
4496
+ public static getTypeUrl(typeUrlPrefix?: string): string;
4497
+ }
4498
+ }
4499
+ }