@bitgo-beta/abstract-cosmos 1.0.1-beta.99 → 1.0.1-beta.990

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 (49) hide show
  1. package/.eslintignore +1 -1
  2. package/CHANGELOG.md +834 -0
  3. package/dist/resources/MsgCompiled.d.ts +1212 -0
  4. package/dist/resources/MsgCompiled.js +2761 -0
  5. package/dist/src/cosmosCoin.d.ts +20 -10
  6. package/dist/src/cosmosCoin.d.ts.map +1 -1
  7. package/dist/src/cosmosCoin.js +170 -143
  8. package/dist/src/index.js +6 -2
  9. package/dist/src/lib/ContractCallBuilder.d.ts +3 -3
  10. package/dist/src/lib/ContractCallBuilder.d.ts.map +1 -1
  11. package/dist/src/lib/ContractCallBuilder.js +35 -2
  12. package/dist/src/lib/StakingActivateBuilder.d.ts +3 -3
  13. package/dist/src/lib/StakingActivateBuilder.d.ts.map +1 -1
  14. package/dist/src/lib/StakingActivateBuilder.js +35 -2
  15. package/dist/src/lib/StakingDeactivateBuilder.d.ts +3 -3
  16. package/dist/src/lib/StakingDeactivateBuilder.d.ts.map +1 -1
  17. package/dist/src/lib/StakingDeactivateBuilder.js +35 -2
  18. package/dist/src/lib/StakingRedelegateBuilder.d.ts +13 -0
  19. package/dist/src/lib/StakingRedelegateBuilder.d.ts.map +1 -0
  20. package/dist/src/lib/StakingRedelegateBuilder.js +61 -0
  21. package/dist/src/lib/StakingWithdrawRewardsBuilder.d.ts +3 -3
  22. package/dist/src/lib/StakingWithdrawRewardsBuilder.d.ts.map +1 -1
  23. package/dist/src/lib/StakingWithdrawRewardsBuilder.js +35 -2
  24. package/dist/src/lib/constants.d.ts +2 -0
  25. package/dist/src/lib/constants.d.ts.map +1 -1
  26. package/dist/src/lib/constants.js +4 -2
  27. package/dist/src/lib/iface.d.ts +30 -8
  28. package/dist/src/lib/iface.d.ts.map +1 -1
  29. package/dist/src/lib/iface.js +18 -1
  30. package/dist/src/lib/index.d.ts +1 -0
  31. package/dist/src/lib/index.d.ts.map +1 -1
  32. package/dist/src/lib/index.js +32 -4
  33. package/dist/src/lib/keyPair.js +9 -10
  34. package/dist/src/lib/transaction.d.ts +8 -9
  35. package/dist/src/lib/transaction.d.ts.map +1 -1
  36. package/dist/src/lib/transaction.js +124 -92
  37. package/dist/src/lib/transactionBuilder.d.ts +17 -14
  38. package/dist/src/lib/transactionBuilder.d.ts.map +1 -1
  39. package/dist/src/lib/transactionBuilder.js +10 -5
  40. package/dist/src/lib/transferBuilder.d.ts +3 -3
  41. package/dist/src/lib/transferBuilder.d.ts.map +1 -1
  42. package/dist/src/lib/transferBuilder.js +35 -2
  43. package/dist/src/lib/utils.d.ts +97 -17
  44. package/dist/src/lib/utils.d.ts.map +1 -1
  45. package/dist/src/lib/utils.js +229 -23
  46. package/dist/tsconfig.tsbuildinfo +1 -1
  47. package/package.json +12 -10
  48. package/resources/MsgCompiled.d.ts +1212 -0
  49. package/resources/MsgCompiled.js +2761 -0
@@ -0,0 +1,1212 @@
1
+ import * as $protobuf from 'protobufjs';
2
+ /** Namespace common. */
3
+ export namespace common {
4
+ /** Properties of an Asset. */
5
+ interface IAsset {
6
+ /** Asset chain */
7
+ chain?: string | null;
8
+
9
+ /** Asset symbol */
10
+ symbol?: string | null;
11
+
12
+ /** Asset ticker */
13
+ ticker?: string | null;
14
+
15
+ /** Asset synth */
16
+ synth?: boolean | null;
17
+
18
+ /** Asset trade */
19
+ trade?: boolean | null;
20
+ }
21
+
22
+ /** Represents an Asset. */
23
+ class Asset implements IAsset {
24
+ /**
25
+ * Constructs a new Asset.
26
+ * @param [properties] Properties to set
27
+ */
28
+ constructor(properties?: common.IAsset);
29
+
30
+ /** Asset chain. */
31
+ public chain: string;
32
+
33
+ /** Asset symbol. */
34
+ public symbol: string;
35
+
36
+ /** Asset ticker. */
37
+ public ticker: string;
38
+
39
+ /** Asset synth. */
40
+ public synth: boolean;
41
+
42
+ /** Asset trade. */
43
+ public trade: boolean;
44
+
45
+ /**
46
+ * Creates a new Asset instance using the specified properties.
47
+ * @param [properties] Properties to set
48
+ * @returns Asset instance
49
+ */
50
+ public static create(properties?: common.IAsset): common.Asset;
51
+
52
+ /**
53
+ * Encodes the specified Asset message. Does not implicitly {@link common.Asset.verify|verify} messages.
54
+ * @param message Asset message or plain object to encode
55
+ * @param [writer] Writer to encode to
56
+ * @returns Writer
57
+ */
58
+ public static encode(message: common.IAsset, writer?: $protobuf.Writer): $protobuf.Writer;
59
+
60
+ /**
61
+ * Encodes the specified Asset message, length delimited. Does not implicitly {@link common.Asset.verify|verify} messages.
62
+ * @param message Asset message or plain object to encode
63
+ * @param [writer] Writer to encode to
64
+ * @returns Writer
65
+ */
66
+ public static encodeDelimited(message: common.IAsset, writer?: $protobuf.Writer): $protobuf.Writer;
67
+
68
+ /**
69
+ * Decodes an Asset message from the specified reader or buffer.
70
+ * @param reader Reader or buffer to decode from
71
+ * @param [length] Message length if known beforehand
72
+ * @returns Asset
73
+ * @throws {Error} If the payload is not a reader or valid buffer
74
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
75
+ */
76
+ public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): common.Asset;
77
+
78
+ /**
79
+ * Decodes an Asset message from the specified reader or buffer, length delimited.
80
+ * @param reader Reader or buffer to decode from
81
+ * @returns Asset
82
+ * @throws {Error} If the payload is not a reader or valid buffer
83
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
84
+ */
85
+ public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): common.Asset;
86
+
87
+ /**
88
+ * Verifies an Asset message.
89
+ * @param message Plain object to verify
90
+ * @returns `null` if valid, otherwise the reason why it is not
91
+ */
92
+ public static verify(message: { [k: string]: any }): string | null;
93
+
94
+ /**
95
+ * Creates an Asset message from a plain object. Also converts values to their respective internal types.
96
+ * @param object Plain object
97
+ * @returns Asset
98
+ */
99
+ public static fromObject(object: { [k: string]: any }): common.Asset;
100
+
101
+ /**
102
+ * Creates a plain object from an Asset message. Also converts values to other types if specified.
103
+ * @param message Asset
104
+ * @param [options] Conversion options
105
+ * @returns Plain object
106
+ */
107
+ public static toObject(message: common.Asset, options?: $protobuf.IConversionOptions): { [k: string]: any };
108
+
109
+ /**
110
+ * Converts this Asset to JSON.
111
+ * @returns JSON object
112
+ */
113
+ public toJSON(): { [k: string]: any };
114
+ }
115
+
116
+ /** Properties of a Coin. */
117
+ interface ICoin {
118
+ /** Coin asset */
119
+ asset?: common.IAsset | null;
120
+
121
+ /** Coin amount */
122
+ amount?: string | null;
123
+
124
+ /** Coin decimals */
125
+ decimals?: number | Long | null;
126
+ }
127
+
128
+ /** Represents a Coin. */
129
+ class Coin implements ICoin {
130
+ /**
131
+ * Constructs a new Coin.
132
+ * @param [properties] Properties to set
133
+ */
134
+ constructor(properties?: common.ICoin);
135
+
136
+ /** Coin asset. */
137
+ public asset?: common.IAsset | null;
138
+
139
+ /** Coin amount. */
140
+ public amount: string;
141
+
142
+ /** Coin decimals. */
143
+ public decimals: number | Long;
144
+
145
+ /**
146
+ * Creates a new Coin instance using the specified properties.
147
+ * @param [properties] Properties to set
148
+ * @returns Coin instance
149
+ */
150
+ public static create(properties?: common.ICoin): common.Coin;
151
+
152
+ /**
153
+ * Encodes the specified Coin message. Does not implicitly {@link common.Coin.verify|verify} messages.
154
+ * @param message Coin message or plain object to encode
155
+ * @param [writer] Writer to encode to
156
+ * @returns Writer
157
+ */
158
+ public static encode(message: common.ICoin, writer?: $protobuf.Writer): $protobuf.Writer;
159
+
160
+ /**
161
+ * Encodes the specified Coin message, length delimited. Does not implicitly {@link common.Coin.verify|verify} messages.
162
+ * @param message Coin message or plain object to encode
163
+ * @param [writer] Writer to encode to
164
+ * @returns Writer
165
+ */
166
+ public static encodeDelimited(message: common.ICoin, writer?: $protobuf.Writer): $protobuf.Writer;
167
+
168
+ /**
169
+ * Decodes a Coin message from the specified reader or buffer.
170
+ * @param reader Reader or buffer to decode from
171
+ * @param [length] Message length if known beforehand
172
+ * @returns Coin
173
+ * @throws {Error} If the payload is not a reader or valid buffer
174
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
175
+ */
176
+ public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): common.Coin;
177
+
178
+ /**
179
+ * Decodes a Coin message from the specified reader or buffer, length delimited.
180
+ * @param reader Reader or buffer to decode from
181
+ * @returns Coin
182
+ * @throws {Error} If the payload is not a reader or valid buffer
183
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
184
+ */
185
+ public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): common.Coin;
186
+
187
+ /**
188
+ * Verifies a Coin message.
189
+ * @param message Plain object to verify
190
+ * @returns `null` if valid, otherwise the reason why it is not
191
+ */
192
+ public static verify(message: { [k: string]: any }): string | null;
193
+
194
+ /**
195
+ * Creates a Coin message from a plain object. Also converts values to their respective internal types.
196
+ * @param object Plain object
197
+ * @returns Coin
198
+ */
199
+ public static fromObject(object: { [k: string]: any }): common.Coin;
200
+
201
+ /**
202
+ * Creates a plain object from a Coin message. Also converts values to other types if specified.
203
+ * @param message Coin
204
+ * @param [options] Conversion options
205
+ * @returns Plain object
206
+ */
207
+ public static toObject(message: common.Coin, options?: $protobuf.IConversionOptions): { [k: string]: any };
208
+
209
+ /**
210
+ * Converts this Coin to JSON.
211
+ * @returns JSON object
212
+ */
213
+ public toJSON(): { [k: string]: any };
214
+ }
215
+
216
+ /** Properties of a PubKeySet. */
217
+ interface IPubKeySet {
218
+ /** PubKeySet secp256k1 */
219
+ secp256k1?: string | null;
220
+
221
+ /** PubKeySet ed25519 */
222
+ ed25519?: string | null;
223
+ }
224
+
225
+ /** Represents a PubKeySet. */
226
+ class PubKeySet implements IPubKeySet {
227
+ /**
228
+ * Constructs a new PubKeySet.
229
+ * @param [properties] Properties to set
230
+ */
231
+ constructor(properties?: common.IPubKeySet);
232
+
233
+ /** PubKeySet secp256k1. */
234
+ public secp256k1: string;
235
+
236
+ /** PubKeySet ed25519. */
237
+ public ed25519: string;
238
+
239
+ /**
240
+ * Creates a new PubKeySet instance using the specified properties.
241
+ * @param [properties] Properties to set
242
+ * @returns PubKeySet instance
243
+ */
244
+ public static create(properties?: common.IPubKeySet): common.PubKeySet;
245
+
246
+ /**
247
+ * Encodes the specified PubKeySet message. Does not implicitly {@link common.PubKeySet.verify|verify} messages.
248
+ * @param message PubKeySet message or plain object to encode
249
+ * @param [writer] Writer to encode to
250
+ * @returns Writer
251
+ */
252
+ public static encode(message: common.IPubKeySet, writer?: $protobuf.Writer): $protobuf.Writer;
253
+
254
+ /**
255
+ * Encodes the specified PubKeySet message, length delimited. Does not implicitly {@link common.PubKeySet.verify|verify} messages.
256
+ * @param message PubKeySet message or plain object to encode
257
+ * @param [writer] Writer to encode to
258
+ * @returns Writer
259
+ */
260
+ public static encodeDelimited(message: common.IPubKeySet, writer?: $protobuf.Writer): $protobuf.Writer;
261
+
262
+ /**
263
+ * Decodes a PubKeySet message from the specified reader or buffer.
264
+ * @param reader Reader or buffer to decode from
265
+ * @param [length] Message length if known beforehand
266
+ * @returns PubKeySet
267
+ * @throws {Error} If the payload is not a reader or valid buffer
268
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
269
+ */
270
+ public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): common.PubKeySet;
271
+
272
+ /**
273
+ * Decodes a PubKeySet message from the specified reader or buffer, length delimited.
274
+ * @param reader Reader or buffer to decode from
275
+ * @returns PubKeySet
276
+ * @throws {Error} If the payload is not a reader or valid buffer
277
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
278
+ */
279
+ public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): common.PubKeySet;
280
+
281
+ /**
282
+ * Verifies a PubKeySet message.
283
+ * @param message Plain object to verify
284
+ * @returns `null` if valid, otherwise the reason why it is not
285
+ */
286
+ public static verify(message: { [k: string]: any }): string | null;
287
+
288
+ /**
289
+ * Creates a PubKeySet message from a plain object. Also converts values to their respective internal types.
290
+ * @param object Plain object
291
+ * @returns PubKeySet
292
+ */
293
+ public static fromObject(object: { [k: string]: any }): common.PubKeySet;
294
+
295
+ /**
296
+ * Creates a plain object from a PubKeySet message. Also converts values to other types if specified.
297
+ * @param message PubKeySet
298
+ * @param [options] Conversion options
299
+ * @returns Plain object
300
+ */
301
+ public static toObject(message: common.PubKeySet, options?: $protobuf.IConversionOptions): { [k: string]: any };
302
+
303
+ /**
304
+ * Converts this PubKeySet to JSON.
305
+ * @returns JSON object
306
+ */
307
+ public toJSON(): { [k: string]: any };
308
+ }
309
+
310
+ /** Properties of a Tx. */
311
+ interface ITx {
312
+ /** Tx id */
313
+ id?: string | null;
314
+
315
+ /** Tx chain */
316
+ chain?: string | null;
317
+
318
+ /** Tx fromAddress */
319
+ fromAddress?: string | null;
320
+
321
+ /** Tx toAddress */
322
+ toAddress?: string | null;
323
+
324
+ /** Tx coins */
325
+ coins?: common.ICoin[] | null;
326
+
327
+ /** Tx gas */
328
+ gas?: common.ICoin[] | null;
329
+
330
+ /** Tx memo */
331
+ memo?: string | null;
332
+ }
333
+
334
+ /** Represents a Tx. */
335
+ class Tx implements ITx {
336
+ /**
337
+ * Constructs a new Tx.
338
+ * @param [properties] Properties to set
339
+ */
340
+ constructor(properties?: common.ITx);
341
+
342
+ /** Tx id. */
343
+ public id: string;
344
+
345
+ /** Tx chain. */
346
+ public chain: string;
347
+
348
+ /** Tx fromAddress. */
349
+ public fromAddress: string;
350
+
351
+ /** Tx toAddress. */
352
+ public toAddress: string;
353
+
354
+ /** Tx coins. */
355
+ public coins: common.ICoin[];
356
+
357
+ /** Tx gas. */
358
+ public gas: common.ICoin[];
359
+
360
+ /** Tx memo. */
361
+ public memo: string;
362
+
363
+ /**
364
+ * Creates a new Tx instance using the specified properties.
365
+ * @param [properties] Properties to set
366
+ * @returns Tx instance
367
+ */
368
+ public static create(properties?: common.ITx): common.Tx;
369
+
370
+ /**
371
+ * Encodes the specified Tx message. Does not implicitly {@link common.Tx.verify|verify} messages.
372
+ * @param message Tx message or plain object to encode
373
+ * @param [writer] Writer to encode to
374
+ * @returns Writer
375
+ */
376
+ public static encode(message: common.ITx, writer?: $protobuf.Writer): $protobuf.Writer;
377
+
378
+ /**
379
+ * Encodes the specified Tx message, length delimited. Does not implicitly {@link common.Tx.verify|verify} messages.
380
+ * @param message Tx message or plain object to encode
381
+ * @param [writer] Writer to encode to
382
+ * @returns Writer
383
+ */
384
+ public static encodeDelimited(message: common.ITx, writer?: $protobuf.Writer): $protobuf.Writer;
385
+
386
+ /**
387
+ * Decodes a Tx message from the specified reader or buffer.
388
+ * @param reader Reader or buffer to decode from
389
+ * @param [length] Message length if known beforehand
390
+ * @returns Tx
391
+ * @throws {Error} If the payload is not a reader or valid buffer
392
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
393
+ */
394
+ public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): common.Tx;
395
+
396
+ /**
397
+ * Decodes a Tx message from the specified reader or buffer, length delimited.
398
+ * @param reader Reader or buffer to decode from
399
+ * @returns Tx
400
+ * @throws {Error} If the payload is not a reader or valid buffer
401
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
402
+ */
403
+ public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): common.Tx;
404
+
405
+ /**
406
+ * Verifies a Tx message.
407
+ * @param message Plain object to verify
408
+ * @returns `null` if valid, otherwise the reason why it is not
409
+ */
410
+ public static verify(message: { [k: string]: any }): string | null;
411
+
412
+ /**
413
+ * Creates a Tx message from a plain object. Also converts values to their respective internal types.
414
+ * @param object Plain object
415
+ * @returns Tx
416
+ */
417
+ public static fromObject(object: { [k: string]: any }): common.Tx;
418
+
419
+ /**
420
+ * Creates a plain object from a Tx message. Also converts values to other types if specified.
421
+ * @param message Tx
422
+ * @param [options] Conversion options
423
+ * @returns Plain object
424
+ */
425
+ public static toObject(message: common.Tx, options?: $protobuf.IConversionOptions): { [k: string]: any };
426
+
427
+ /**
428
+ * Converts this Tx to JSON.
429
+ * @returns JSON object
430
+ */
431
+ public toJSON(): { [k: string]: any };
432
+ }
433
+
434
+ /** Properties of a Fee. */
435
+ interface IFee {
436
+ /** Fee coins */
437
+ coins?: common.ICoin[] | null;
438
+
439
+ /** Fee poolDeduct */
440
+ poolDeduct?: string | null;
441
+ }
442
+
443
+ /** Represents a Fee. */
444
+ class Fee implements IFee {
445
+ /**
446
+ * Constructs a new Fee.
447
+ * @param [properties] Properties to set
448
+ */
449
+ constructor(properties?: common.IFee);
450
+
451
+ /** Fee coins. */
452
+ public coins: common.ICoin[];
453
+
454
+ /** Fee poolDeduct. */
455
+ public poolDeduct: string;
456
+
457
+ /**
458
+ * Creates a new Fee instance using the specified properties.
459
+ * @param [properties] Properties to set
460
+ * @returns Fee instance
461
+ */
462
+ public static create(properties?: common.IFee): common.Fee;
463
+
464
+ /**
465
+ * Encodes the specified Fee message. Does not implicitly {@link common.Fee.verify|verify} messages.
466
+ * @param message Fee message or plain object to encode
467
+ * @param [writer] Writer to encode to
468
+ * @returns Writer
469
+ */
470
+ public static encode(message: common.IFee, writer?: $protobuf.Writer): $protobuf.Writer;
471
+
472
+ /**
473
+ * Encodes the specified Fee message, length delimited. Does not implicitly {@link common.Fee.verify|verify} messages.
474
+ * @param message Fee message or plain object to encode
475
+ * @param [writer] Writer to encode to
476
+ * @returns Writer
477
+ */
478
+ public static encodeDelimited(message: common.IFee, writer?: $protobuf.Writer): $protobuf.Writer;
479
+
480
+ /**
481
+ * Decodes a Fee message from the specified reader or buffer.
482
+ * @param reader Reader or buffer to decode from
483
+ * @param [length] Message length if known beforehand
484
+ * @returns Fee
485
+ * @throws {Error} If the payload is not a reader or valid buffer
486
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
487
+ */
488
+ public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): common.Fee;
489
+
490
+ /**
491
+ * Decodes a Fee message from the specified reader or buffer, length delimited.
492
+ * @param reader Reader or buffer to decode from
493
+ * @returns Fee
494
+ * @throws {Error} If the payload is not a reader or valid buffer
495
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
496
+ */
497
+ public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): common.Fee;
498
+
499
+ /**
500
+ * Verifies a Fee message.
501
+ * @param message Plain object to verify
502
+ * @returns `null` if valid, otherwise the reason why it is not
503
+ */
504
+ public static verify(message: { [k: string]: any }): string | null;
505
+
506
+ /**
507
+ * Creates a Fee message from a plain object. Also converts values to their respective internal types.
508
+ * @param object Plain object
509
+ * @returns Fee
510
+ */
511
+ public static fromObject(object: { [k: string]: any }): common.Fee;
512
+
513
+ /**
514
+ * Creates a plain object from a Fee message. Also converts values to other types if specified.
515
+ * @param message Fee
516
+ * @param [options] Conversion options
517
+ * @returns Plain object
518
+ */
519
+ public static toObject(message: common.Fee, options?: $protobuf.IConversionOptions): { [k: string]: any };
520
+
521
+ /**
522
+ * Converts this Fee to JSON.
523
+ * @returns JSON object
524
+ */
525
+ public toJSON(): { [k: string]: any };
526
+ }
527
+
528
+ /** Properties of a ProtoUint. */
529
+ interface IProtoUint {
530
+ /** ProtoUint value */
531
+ value?: string | null;
532
+ }
533
+
534
+ /** Represents a ProtoUint. */
535
+ class ProtoUint implements IProtoUint {
536
+ /**
537
+ * Constructs a new ProtoUint.
538
+ * @param [properties] Properties to set
539
+ */
540
+ constructor(properties?: common.IProtoUint);
541
+
542
+ /** ProtoUint value. */
543
+ public value: string;
544
+
545
+ /**
546
+ * Creates a new ProtoUint instance using the specified properties.
547
+ * @param [properties] Properties to set
548
+ * @returns ProtoUint instance
549
+ */
550
+ public static create(properties?: common.IProtoUint): common.ProtoUint;
551
+
552
+ /**
553
+ * Encodes the specified ProtoUint message. Does not implicitly {@link common.ProtoUint.verify|verify} messages.
554
+ * @param message ProtoUint message or plain object to encode
555
+ * @param [writer] Writer to encode to
556
+ * @returns Writer
557
+ */
558
+ public static encode(message: common.IProtoUint, writer?: $protobuf.Writer): $protobuf.Writer;
559
+
560
+ /**
561
+ * Encodes the specified ProtoUint message, length delimited. Does not implicitly {@link common.ProtoUint.verify|verify} messages.
562
+ * @param message ProtoUint message or plain object to encode
563
+ * @param [writer] Writer to encode to
564
+ * @returns Writer
565
+ */
566
+ public static encodeDelimited(message: common.IProtoUint, writer?: $protobuf.Writer): $protobuf.Writer;
567
+
568
+ /**
569
+ * Decodes a ProtoUint message from the specified reader or buffer.
570
+ * @param reader Reader or buffer to decode from
571
+ * @param [length] Message length if known beforehand
572
+ * @returns ProtoUint
573
+ * @throws {Error} If the payload is not a reader or valid buffer
574
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
575
+ */
576
+ public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): common.ProtoUint;
577
+
578
+ /**
579
+ * Decodes a ProtoUint message from the specified reader or buffer, length delimited.
580
+ * @param reader Reader or buffer to decode from
581
+ * @returns ProtoUint
582
+ * @throws {Error} If the payload is not a reader or valid buffer
583
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
584
+ */
585
+ public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): common.ProtoUint;
586
+
587
+ /**
588
+ * Verifies a ProtoUint message.
589
+ * @param message Plain object to verify
590
+ * @returns `null` if valid, otherwise the reason why it is not
591
+ */
592
+ public static verify(message: { [k: string]: any }): string | null;
593
+
594
+ /**
595
+ * Creates a ProtoUint message from a plain object. Also converts values to their respective internal types.
596
+ * @param object Plain object
597
+ * @returns ProtoUint
598
+ */
599
+ public static fromObject(object: { [k: string]: any }): common.ProtoUint;
600
+
601
+ /**
602
+ * Creates a plain object from a ProtoUint message. Also converts values to other types if specified.
603
+ * @param message ProtoUint
604
+ * @param [options] Conversion options
605
+ * @returns Plain object
606
+ */
607
+ public static toObject(message: common.ProtoUint, options?: $protobuf.IConversionOptions): { [k: string]: any };
608
+
609
+ /**
610
+ * Converts this ProtoUint to JSON.
611
+ * @returns JSON object
612
+ */
613
+ public toJSON(): { [k: string]: any };
614
+ }
615
+ }
616
+
617
+ /** Namespace types. */
618
+ export namespace types {
619
+ /** Properties of a MsgDeposit. */
620
+ interface IMsgDeposit {
621
+ /** MsgDeposit coins */
622
+ coins?: common.ICoin[] | null;
623
+
624
+ /** MsgDeposit memo */
625
+ memo?: string | null;
626
+
627
+ /** MsgDeposit signer */
628
+ signer?: Uint8Array | null;
629
+ }
630
+
631
+ /** Represents a MsgDeposit. */
632
+ class MsgDeposit implements IMsgDeposit {
633
+ /**
634
+ * Constructs a new MsgDeposit.
635
+ * @param [properties] Properties to set
636
+ */
637
+ constructor(properties?: types.IMsgDeposit);
638
+
639
+ /** MsgDeposit coins. */
640
+ public coins: common.ICoin[];
641
+
642
+ /** MsgDeposit memo. */
643
+ public memo: string;
644
+
645
+ /** MsgDeposit signer. */
646
+ public signer: Uint8Array;
647
+
648
+ /**
649
+ * Creates a new MsgDeposit instance using the specified properties.
650
+ * @param [properties] Properties to set
651
+ * @returns MsgDeposit instance
652
+ */
653
+ public static create(properties?: types.IMsgDeposit): types.MsgDeposit;
654
+
655
+ /**
656
+ * Encodes the specified MsgDeposit message. Does not implicitly {@link types.MsgDeposit.verify|verify} messages.
657
+ * @param message MsgDeposit message or plain object to encode
658
+ * @param [writer] Writer to encode to
659
+ * @returns Writer
660
+ */
661
+ public static encode(message: types.IMsgDeposit, writer?: $protobuf.Writer): $protobuf.Writer;
662
+
663
+ /**
664
+ * Encodes the specified MsgDeposit message, length delimited. Does not implicitly {@link types.MsgDeposit.verify|verify} messages.
665
+ * @param message MsgDeposit message or plain object to encode
666
+ * @param [writer] Writer to encode to
667
+ * @returns Writer
668
+ */
669
+ public static encodeDelimited(message: types.IMsgDeposit, writer?: $protobuf.Writer): $protobuf.Writer;
670
+
671
+ /**
672
+ * Decodes a MsgDeposit message from the specified reader or buffer.
673
+ * @param reader Reader or buffer to decode from
674
+ * @param [length] Message length if known beforehand
675
+ * @returns MsgDeposit
676
+ * @throws {Error} If the payload is not a reader or valid buffer
677
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
678
+ */
679
+ public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): types.MsgDeposit;
680
+
681
+ /**
682
+ * Decodes a MsgDeposit message from the specified reader or buffer, length delimited.
683
+ * @param reader Reader or buffer to decode from
684
+ * @returns MsgDeposit
685
+ * @throws {Error} If the payload is not a reader or valid buffer
686
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
687
+ */
688
+ public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): types.MsgDeposit;
689
+
690
+ /**
691
+ * Verifies a MsgDeposit message.
692
+ * @param message Plain object to verify
693
+ * @returns `null` if valid, otherwise the reason why it is not
694
+ */
695
+ public static verify(message: { [k: string]: any }): string | null;
696
+
697
+ /**
698
+ * Creates a MsgDeposit message from a plain object. Also converts values to their respective internal types.
699
+ * @param object Plain object
700
+ * @returns MsgDeposit
701
+ */
702
+ public static fromObject(object: { [k: string]: any }): types.MsgDeposit;
703
+
704
+ /**
705
+ * Creates a plain object from a MsgDeposit message. Also converts values to other types if specified.
706
+ * @param message MsgDeposit
707
+ * @param [options] Conversion options
708
+ * @returns Plain object
709
+ */
710
+ public static toObject(message: types.MsgDeposit, options?: $protobuf.IConversionOptions): { [k: string]: any };
711
+
712
+ /**
713
+ * Converts this MsgDeposit to JSON.
714
+ * @returns JSON object
715
+ */
716
+ public toJSON(): { [k: string]: any };
717
+ }
718
+
719
+ /** Properties of a MsgSend. */
720
+ interface IMsgSend {
721
+ /** MsgSend fromAddress */
722
+ fromAddress?: Uint8Array | null;
723
+
724
+ /** MsgSend toAddress */
725
+ toAddress?: Uint8Array | null;
726
+
727
+ /** MsgSend amount */
728
+ amount?: cosmos.base.v1beta1.ICoin[] | null;
729
+ }
730
+
731
+ /** Represents a MsgSend. */
732
+ class MsgSend implements IMsgSend {
733
+ /**
734
+ * Constructs a new MsgSend.
735
+ * @param [properties] Properties to set
736
+ */
737
+ constructor(properties?: types.IMsgSend);
738
+
739
+ /** MsgSend fromAddress. */
740
+ public fromAddress: Uint8Array;
741
+
742
+ /** MsgSend toAddress. */
743
+ public toAddress: Uint8Array;
744
+
745
+ /** MsgSend amount. */
746
+ public amount: cosmos.base.v1beta1.ICoin[];
747
+
748
+ /**
749
+ * Creates a new MsgSend instance using the specified properties.
750
+ * @param [properties] Properties to set
751
+ * @returns MsgSend instance
752
+ */
753
+ public static create(properties?: types.IMsgSend): types.MsgSend;
754
+
755
+ /**
756
+ * Encodes the specified MsgSend message. Does not implicitly {@link types.MsgSend.verify|verify} messages.
757
+ * @param message MsgSend message or plain object to encode
758
+ * @param [writer] Writer to encode to
759
+ * @returns Writer
760
+ */
761
+ public static encode(message: types.IMsgSend, writer?: $protobuf.Writer): $protobuf.Writer;
762
+
763
+ /**
764
+ * Encodes the specified MsgSend message, length delimited. Does not implicitly {@link types.MsgSend.verify|verify} messages.
765
+ * @param message MsgSend message or plain object to encode
766
+ * @param [writer] Writer to encode to
767
+ * @returns Writer
768
+ */
769
+ public static encodeDelimited(message: types.IMsgSend, writer?: $protobuf.Writer): $protobuf.Writer;
770
+
771
+ /**
772
+ * Decodes a MsgSend message from the specified reader or buffer.
773
+ * @param reader Reader or buffer to decode from
774
+ * @param [length] Message length if known beforehand
775
+ * @returns MsgSend
776
+ * @throws {Error} If the payload is not a reader or valid buffer
777
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
778
+ */
779
+ public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): types.MsgSend;
780
+
781
+ /**
782
+ * Decodes a MsgSend message from the specified reader or buffer, length delimited.
783
+ * @param reader Reader or buffer to decode from
784
+ * @returns MsgSend
785
+ * @throws {Error} If the payload is not a reader or valid buffer
786
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
787
+ */
788
+ public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): types.MsgSend;
789
+
790
+ /**
791
+ * Verifies a MsgSend message.
792
+ * @param message Plain object to verify
793
+ * @returns `null` if valid, otherwise the reason why it is not
794
+ */
795
+ public static verify(message: { [k: string]: any }): string | null;
796
+
797
+ /**
798
+ * Creates a MsgSend message from a plain object. Also converts values to their respective internal types.
799
+ * @param object Plain object
800
+ * @returns MsgSend
801
+ */
802
+ public static fromObject(object: { [k: string]: any }): types.MsgSend;
803
+
804
+ /**
805
+ * Creates a plain object from a MsgSend message. Also converts values to other types if specified.
806
+ * @param message MsgSend
807
+ * @param [options] Conversion options
808
+ * @returns Plain object
809
+ */
810
+ public static toObject(message: types.MsgSend, options?: $protobuf.IConversionOptions): { [k: string]: any };
811
+
812
+ /**
813
+ * Converts this MsgSend to JSON.
814
+ * @returns JSON object
815
+ */
816
+ public toJSON(): { [k: string]: any };
817
+ }
818
+ }
819
+
820
+ /** Namespace cosmos. */
821
+ export namespace cosmos {
822
+ /** Namespace base. */
823
+ namespace base {
824
+ /** Namespace v1beta1. */
825
+ namespace v1beta1 {
826
+ /** Properties of a Coin. */
827
+ interface ICoin {
828
+ /** Coin denom */
829
+ denom?: string | null;
830
+
831
+ /** Coin amount */
832
+ amount?: string | null;
833
+ }
834
+
835
+ /** Represents a Coin. */
836
+ class Coin implements ICoin {
837
+ /**
838
+ * Constructs a new Coin.
839
+ * @param [properties] Properties to set
840
+ */
841
+ constructor(properties?: cosmos.base.v1beta1.ICoin);
842
+
843
+ /** Coin denom. */
844
+ public denom: string;
845
+
846
+ /** Coin amount. */
847
+ public amount: string;
848
+
849
+ /**
850
+ * Creates a new Coin instance using the specified properties.
851
+ * @param [properties] Properties to set
852
+ * @returns Coin instance
853
+ */
854
+ public static create(properties?: cosmos.base.v1beta1.ICoin): cosmos.base.v1beta1.Coin;
855
+
856
+ /**
857
+ * Encodes the specified Coin message. Does not implicitly {@link cosmos.base.v1beta1.Coin.verify|verify} messages.
858
+ * @param message Coin message or plain object to encode
859
+ * @param [writer] Writer to encode to
860
+ * @returns Writer
861
+ */
862
+ public static encode(message: cosmos.base.v1beta1.ICoin, writer?: $protobuf.Writer): $protobuf.Writer;
863
+
864
+ /**
865
+ * Encodes the specified Coin message, length delimited. Does not implicitly {@link cosmos.base.v1beta1.Coin.verify|verify} messages.
866
+ * @param message Coin message or plain object to encode
867
+ * @param [writer] Writer to encode to
868
+ * @returns Writer
869
+ */
870
+ public static encodeDelimited(message: cosmos.base.v1beta1.ICoin, writer?: $protobuf.Writer): $protobuf.Writer;
871
+
872
+ /**
873
+ * Decodes a Coin message from the specified reader or buffer.
874
+ * @param reader Reader or buffer to decode from
875
+ * @param [length] Message length if known beforehand
876
+ * @returns Coin
877
+ * @throws {Error} If the payload is not a reader or valid buffer
878
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
879
+ */
880
+ public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): cosmos.base.v1beta1.Coin;
881
+
882
+ /**
883
+ * Decodes a Coin message from the specified reader or buffer, length delimited.
884
+ * @param reader Reader or buffer to decode from
885
+ * @returns Coin
886
+ * @throws {Error} If the payload is not a reader or valid buffer
887
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
888
+ */
889
+ public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos.base.v1beta1.Coin;
890
+
891
+ /**
892
+ * Verifies a Coin message.
893
+ * @param message Plain object to verify
894
+ * @returns `null` if valid, otherwise the reason why it is not
895
+ */
896
+ public static verify(message: { [k: string]: any }): string | null;
897
+
898
+ /**
899
+ * Creates a Coin message from a plain object. Also converts values to their respective internal types.
900
+ * @param object Plain object
901
+ * @returns Coin
902
+ */
903
+ public static fromObject(object: { [k: string]: any }): cosmos.base.v1beta1.Coin;
904
+
905
+ /**
906
+ * Creates a plain object from a Coin message. Also converts values to other types if specified.
907
+ * @param message Coin
908
+ * @param [options] Conversion options
909
+ * @returns Plain object
910
+ */
911
+ public static toObject(
912
+ message: cosmos.base.v1beta1.Coin,
913
+ options?: $protobuf.IConversionOptions
914
+ ): { [k: string]: any };
915
+
916
+ /**
917
+ * Converts this Coin to JSON.
918
+ * @returns JSON object
919
+ */
920
+ public toJSON(): { [k: string]: any };
921
+ }
922
+
923
+ /** Properties of a DecCoin. */
924
+ interface IDecCoin {
925
+ /** DecCoin denom */
926
+ denom?: string | null;
927
+
928
+ /** DecCoin amount */
929
+ amount?: string | null;
930
+ }
931
+
932
+ /** Represents a DecCoin. */
933
+ class DecCoin implements IDecCoin {
934
+ /**
935
+ * Constructs a new DecCoin.
936
+ * @param [properties] Properties to set
937
+ */
938
+ constructor(properties?: cosmos.base.v1beta1.IDecCoin);
939
+
940
+ /** DecCoin denom. */
941
+ public denom: string;
942
+
943
+ /** DecCoin amount. */
944
+ public amount: string;
945
+
946
+ /**
947
+ * Creates a new DecCoin instance using the specified properties.
948
+ * @param [properties] Properties to set
949
+ * @returns DecCoin instance
950
+ */
951
+ public static create(properties?: cosmos.base.v1beta1.IDecCoin): cosmos.base.v1beta1.DecCoin;
952
+
953
+ /**
954
+ * Encodes the specified DecCoin message. Does not implicitly {@link cosmos.base.v1beta1.DecCoin.verify|verify} messages.
955
+ * @param message DecCoin message or plain object to encode
956
+ * @param [writer] Writer to encode to
957
+ * @returns Writer
958
+ */
959
+ public static encode(message: cosmos.base.v1beta1.IDecCoin, writer?: $protobuf.Writer): $protobuf.Writer;
960
+
961
+ /**
962
+ * Encodes the specified DecCoin message, length delimited. Does not implicitly {@link cosmos.base.v1beta1.DecCoin.verify|verify} messages.
963
+ * @param message DecCoin message or plain object to encode
964
+ * @param [writer] Writer to encode to
965
+ * @returns Writer
966
+ */
967
+ public static encodeDelimited(
968
+ message: cosmos.base.v1beta1.IDecCoin,
969
+ writer?: $protobuf.Writer
970
+ ): $protobuf.Writer;
971
+
972
+ /**
973
+ * Decodes a DecCoin message from the specified reader or buffer.
974
+ * @param reader Reader or buffer to decode from
975
+ * @param [length] Message length if known beforehand
976
+ * @returns DecCoin
977
+ * @throws {Error} If the payload is not a reader or valid buffer
978
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
979
+ */
980
+ public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): cosmos.base.v1beta1.DecCoin;
981
+
982
+ /**
983
+ * Decodes a DecCoin message from the specified reader or buffer, length delimited.
984
+ * @param reader Reader or buffer to decode from
985
+ * @returns DecCoin
986
+ * @throws {Error} If the payload is not a reader or valid buffer
987
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
988
+ */
989
+ public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos.base.v1beta1.DecCoin;
990
+
991
+ /**
992
+ * Verifies a DecCoin message.
993
+ * @param message Plain object to verify
994
+ * @returns `null` if valid, otherwise the reason why it is not
995
+ */
996
+ public static verify(message: { [k: string]: any }): string | null;
997
+
998
+ /**
999
+ * Creates a DecCoin message from a plain object. Also converts values to their respective internal types.
1000
+ * @param object Plain object
1001
+ * @returns DecCoin
1002
+ */
1003
+ public static fromObject(object: { [k: string]: any }): cosmos.base.v1beta1.DecCoin;
1004
+
1005
+ /**
1006
+ * Creates a plain object from a DecCoin message. Also converts values to other types if specified.
1007
+ * @param message DecCoin
1008
+ * @param [options] Conversion options
1009
+ * @returns Plain object
1010
+ */
1011
+ public static toObject(
1012
+ message: cosmos.base.v1beta1.DecCoin,
1013
+ options?: $protobuf.IConversionOptions
1014
+ ): { [k: string]: any };
1015
+
1016
+ /**
1017
+ * Converts this DecCoin to JSON.
1018
+ * @returns JSON object
1019
+ */
1020
+ public toJSON(): { [k: string]: any };
1021
+ }
1022
+
1023
+ /** Properties of an IntProto. */
1024
+ interface IIntProto {
1025
+ /** IntProto int */
1026
+ int?: string | null;
1027
+ }
1028
+
1029
+ /** Represents an IntProto. */
1030
+ class IntProto implements IIntProto {
1031
+ /**
1032
+ * Constructs a new IntProto.
1033
+ * @param [properties] Properties to set
1034
+ */
1035
+ constructor(properties?: cosmos.base.v1beta1.IIntProto);
1036
+
1037
+ /** IntProto int. */
1038
+ public int: string;
1039
+
1040
+ /**
1041
+ * Creates a new IntProto instance using the specified properties.
1042
+ * @param [properties] Properties to set
1043
+ * @returns IntProto instance
1044
+ */
1045
+ public static create(properties?: cosmos.base.v1beta1.IIntProto): cosmos.base.v1beta1.IntProto;
1046
+
1047
+ /**
1048
+ * Encodes the specified IntProto message. Does not implicitly {@link cosmos.base.v1beta1.IntProto.verify|verify} messages.
1049
+ * @param message IntProto message or plain object to encode
1050
+ * @param [writer] Writer to encode to
1051
+ * @returns Writer
1052
+ */
1053
+ public static encode(message: cosmos.base.v1beta1.IIntProto, writer?: $protobuf.Writer): $protobuf.Writer;
1054
+
1055
+ /**
1056
+ * Encodes the specified IntProto message, length delimited. Does not implicitly {@link cosmos.base.v1beta1.IntProto.verify|verify} messages.
1057
+ * @param message IntProto message or plain object to encode
1058
+ * @param [writer] Writer to encode to
1059
+ * @returns Writer
1060
+ */
1061
+ public static encodeDelimited(
1062
+ message: cosmos.base.v1beta1.IIntProto,
1063
+ writer?: $protobuf.Writer
1064
+ ): $protobuf.Writer;
1065
+
1066
+ /**
1067
+ * Decodes an IntProto message from the specified reader or buffer.
1068
+ * @param reader Reader or buffer to decode from
1069
+ * @param [length] Message length if known beforehand
1070
+ * @returns IntProto
1071
+ * @throws {Error} If the payload is not a reader or valid buffer
1072
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1073
+ */
1074
+ public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): cosmos.base.v1beta1.IntProto;
1075
+
1076
+ /**
1077
+ * Decodes an IntProto message from the specified reader or buffer, length delimited.
1078
+ * @param reader Reader or buffer to decode from
1079
+ * @returns IntProto
1080
+ * @throws {Error} If the payload is not a reader or valid buffer
1081
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1082
+ */
1083
+ public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos.base.v1beta1.IntProto;
1084
+
1085
+ /**
1086
+ * Verifies an IntProto message.
1087
+ * @param message Plain object to verify
1088
+ * @returns `null` if valid, otherwise the reason why it is not
1089
+ */
1090
+ public static verify(message: { [k: string]: any }): string | null;
1091
+
1092
+ /**
1093
+ * Creates an IntProto message from a plain object. Also converts values to their respective internal types.
1094
+ * @param object Plain object
1095
+ * @returns IntProto
1096
+ */
1097
+ public static fromObject(object: { [k: string]: any }): cosmos.base.v1beta1.IntProto;
1098
+
1099
+ /**
1100
+ * Creates a plain object from an IntProto message. Also converts values to other types if specified.
1101
+ * @param message IntProto
1102
+ * @param [options] Conversion options
1103
+ * @returns Plain object
1104
+ */
1105
+ public static toObject(
1106
+ message: cosmos.base.v1beta1.IntProto,
1107
+ options?: $protobuf.IConversionOptions
1108
+ ): { [k: string]: any };
1109
+
1110
+ /**
1111
+ * Converts this IntProto to JSON.
1112
+ * @returns JSON object
1113
+ */
1114
+ public toJSON(): { [k: string]: any };
1115
+ }
1116
+
1117
+ /** Properties of a DecProto. */
1118
+ interface IDecProto {
1119
+ /** DecProto dec */
1120
+ dec?: string | null;
1121
+ }
1122
+
1123
+ /** Represents a DecProto. */
1124
+ class DecProto implements IDecProto {
1125
+ /**
1126
+ * Constructs a new DecProto.
1127
+ * @param [properties] Properties to set
1128
+ */
1129
+ constructor(properties?: cosmos.base.v1beta1.IDecProto);
1130
+
1131
+ /** DecProto dec. */
1132
+ public dec: string;
1133
+
1134
+ /**
1135
+ * Creates a new DecProto instance using the specified properties.
1136
+ * @param [properties] Properties to set
1137
+ * @returns DecProto instance
1138
+ */
1139
+ public static create(properties?: cosmos.base.v1beta1.IDecProto): cosmos.base.v1beta1.DecProto;
1140
+
1141
+ /**
1142
+ * Encodes the specified DecProto message. Does not implicitly {@link cosmos.base.v1beta1.DecProto.verify|verify} messages.
1143
+ * @param message DecProto message or plain object to encode
1144
+ * @param [writer] Writer to encode to
1145
+ * @returns Writer
1146
+ */
1147
+ public static encode(message: cosmos.base.v1beta1.IDecProto, writer?: $protobuf.Writer): $protobuf.Writer;
1148
+
1149
+ /**
1150
+ * Encodes the specified DecProto message, length delimited. Does not implicitly {@link cosmos.base.v1beta1.DecProto.verify|verify} messages.
1151
+ * @param message DecProto message or plain object to encode
1152
+ * @param [writer] Writer to encode to
1153
+ * @returns Writer
1154
+ */
1155
+ public static encodeDelimited(
1156
+ message: cosmos.base.v1beta1.IDecProto,
1157
+ writer?: $protobuf.Writer
1158
+ ): $protobuf.Writer;
1159
+
1160
+ /**
1161
+ * Decodes a DecProto message from the specified reader or buffer.
1162
+ * @param reader Reader or buffer to decode from
1163
+ * @param [length] Message length if known beforehand
1164
+ * @returns DecProto
1165
+ * @throws {Error} If the payload is not a reader or valid buffer
1166
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1167
+ */
1168
+ public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): cosmos.base.v1beta1.DecProto;
1169
+
1170
+ /**
1171
+ * Decodes a DecProto message from the specified reader or buffer, length delimited.
1172
+ * @param reader Reader or buffer to decode from
1173
+ * @returns DecProto
1174
+ * @throws {Error} If the payload is not a reader or valid buffer
1175
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1176
+ */
1177
+ public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos.base.v1beta1.DecProto;
1178
+
1179
+ /**
1180
+ * Verifies a DecProto message.
1181
+ * @param message Plain object to verify
1182
+ * @returns `null` if valid, otherwise the reason why it is not
1183
+ */
1184
+ public static verify(message: { [k: string]: any }): string | null;
1185
+
1186
+ /**
1187
+ * Creates a DecProto message from a plain object. Also converts values to their respective internal types.
1188
+ * @param object Plain object
1189
+ * @returns DecProto
1190
+ */
1191
+ public static fromObject(object: { [k: string]: any }): cosmos.base.v1beta1.DecProto;
1192
+
1193
+ /**
1194
+ * Creates a plain object from a DecProto message. Also converts values to other types if specified.
1195
+ * @param message DecProto
1196
+ * @param [options] Conversion options
1197
+ * @returns Plain object
1198
+ */
1199
+ public static toObject(
1200
+ message: cosmos.base.v1beta1.DecProto,
1201
+ options?: $protobuf.IConversionOptions
1202
+ ): { [k: string]: any };
1203
+
1204
+ /**
1205
+ * Converts this DecProto to JSON.
1206
+ * @returns JSON object
1207
+ */
1208
+ public toJSON(): { [k: string]: any };
1209
+ }
1210
+ }
1211
+ }
1212
+ }