koilib 9.1.0 → 9.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/README.md +1 -0
  2. package/dist/koinos.js +1682 -393
  3. package/dist/koinos.min.js +1 -1
  4. package/lib/Contract.js.map +1 -1
  5. package/lib/Multicall.d.ts +79 -0
  6. package/lib/Multicall.js +104 -0
  7. package/lib/Multicall.js.map +1 -0
  8. package/lib/Serializer.js +7 -1
  9. package/lib/Serializer.js.map +1 -1
  10. package/lib/abis/multicallAbi.d.ts +2 -0
  11. package/lib/abis/multicallAbi.js +127 -0
  12. package/lib/abis/multicallAbi.js.map +1 -0
  13. package/lib/browser/Contract.js.map +1 -1
  14. package/lib/browser/Multicall.d.ts +79 -0
  15. package/lib/browser/Multicall.js +104 -0
  16. package/lib/browser/Multicall.js.map +1 -0
  17. package/lib/browser/Serializer.js +7 -1
  18. package/lib/browser/Serializer.js.map +1 -1
  19. package/lib/browser/abis/multicallAbi.d.ts +2 -0
  20. package/lib/browser/abis/multicallAbi.js +127 -0
  21. package/lib/browser/abis/multicallAbi.js.map +1 -0
  22. package/lib/browser/index.d.ts +1 -0
  23. package/lib/browser/index.js +1 -0
  24. package/lib/browser/index.js.map +1 -1
  25. package/lib/browser/index2.js +2 -0
  26. package/lib/browser/index2.js.map +1 -1
  27. package/lib/browser/protobuf/googleProtobufDescriptor.d.ts +834 -0
  28. package/lib/browser/protobuf/googleProtobufDescriptor.js +844 -0
  29. package/lib/browser/protobuf/googleProtobufDescriptor.js.map +1 -0
  30. package/lib/index.d.ts +1 -0
  31. package/lib/index.js +1 -0
  32. package/lib/index.js.map +1 -1
  33. package/lib/index2.js +2 -0
  34. package/lib/index2.js.map +1 -1
  35. package/lib/protobuf/googleProtobufDescriptor.d.ts +834 -0
  36. package/lib/protobuf/googleProtobufDescriptor.js +844 -0
  37. package/lib/protobuf/googleProtobufDescriptor.js.map +1 -0
  38. package/package.json +2 -2
  39. package/src/Contract.ts +1 -1
  40. package/src/Multicall.ts +139 -0
  41. package/src/Serializer.ts +7 -1
  42. package/src/abis/multicallAbi.ts +127 -0
  43. package/src/index.ts +1 -0
  44. package/src/index2.ts +2 -0
  45. package/src/protoModules/token-proto copy.json +1173 -0
  46. package/src/protoModules/token-proto.js +13382 -0
  47. package/src/protoModules/token-proto.json +1173 -0
  48. package/src/protobuf/googleProtobufDescriptor.ts +840 -0
@@ -0,0 +1,840 @@
1
+ export const googleProtobufDescriptor = {
2
+ google: {
3
+ nested: {
4
+ protobuf: {
5
+ options: {
6
+ go_package: "google.golang.org/protobuf/types/descriptorpb",
7
+ java_package: "com.google.protobuf",
8
+ java_outer_classname: "DescriptorProtos",
9
+ csharp_namespace: "Google.Protobuf.Reflection",
10
+ objc_class_prefix: "GPB",
11
+ cc_enable_arenas: true,
12
+ optimize_for: "SPEED",
13
+ },
14
+ nested: {
15
+ FileDescriptorSet: {
16
+ fields: {
17
+ file: {
18
+ rule: "repeated",
19
+ type: "FileDescriptorProto",
20
+ id: 1,
21
+ },
22
+ },
23
+ },
24
+ FileDescriptorProto: {
25
+ fields: {
26
+ name: {
27
+ type: "string",
28
+ id: 1,
29
+ },
30
+ package: {
31
+ type: "string",
32
+ id: 2,
33
+ },
34
+ dependency: {
35
+ rule: "repeated",
36
+ type: "string",
37
+ id: 3,
38
+ },
39
+ public_dependency: {
40
+ rule: "repeated",
41
+ type: "int32",
42
+ id: 10,
43
+ options: {
44
+ packed: false,
45
+ },
46
+ },
47
+ weak_dependency: {
48
+ rule: "repeated",
49
+ type: "int32",
50
+ id: 11,
51
+ options: {
52
+ packed: false,
53
+ },
54
+ },
55
+ message_type: {
56
+ rule: "repeated",
57
+ type: "DescriptorProto",
58
+ id: 4,
59
+ },
60
+ enum_type: {
61
+ rule: "repeated",
62
+ type: "EnumDescriptorProto",
63
+ id: 5,
64
+ },
65
+ service: {
66
+ rule: "repeated",
67
+ type: "ServiceDescriptorProto",
68
+ id: 6,
69
+ },
70
+ extension: {
71
+ rule: "repeated",
72
+ type: "FieldDescriptorProto",
73
+ id: 7,
74
+ },
75
+ options: {
76
+ type: "FileOptions",
77
+ id: 8,
78
+ },
79
+ source_code_info: {
80
+ type: "SourceCodeInfo",
81
+ id: 9,
82
+ },
83
+ syntax: {
84
+ type: "string",
85
+ id: 12,
86
+ },
87
+ },
88
+ },
89
+ DescriptorProto: {
90
+ fields: {
91
+ name: {
92
+ type: "string",
93
+ id: 1,
94
+ },
95
+ field: {
96
+ rule: "repeated",
97
+ type: "FieldDescriptorProto",
98
+ id: 2,
99
+ },
100
+ extension: {
101
+ rule: "repeated",
102
+ type: "FieldDescriptorProto",
103
+ id: 6,
104
+ },
105
+ nested_type: {
106
+ rule: "repeated",
107
+ type: "DescriptorProto",
108
+ id: 3,
109
+ },
110
+ enum_type: {
111
+ rule: "repeated",
112
+ type: "EnumDescriptorProto",
113
+ id: 4,
114
+ },
115
+ extension_range: {
116
+ rule: "repeated",
117
+ type: "ExtensionRange",
118
+ id: 5,
119
+ },
120
+ oneof_decl: {
121
+ rule: "repeated",
122
+ type: "OneofDescriptorProto",
123
+ id: 8,
124
+ },
125
+ options: {
126
+ type: "MessageOptions",
127
+ id: 7,
128
+ },
129
+ reserved_range: {
130
+ rule: "repeated",
131
+ type: "ReservedRange",
132
+ id: 9,
133
+ },
134
+ reserved_name: {
135
+ rule: "repeated",
136
+ type: "string",
137
+ id: 10,
138
+ },
139
+ },
140
+ nested: {
141
+ ExtensionRange: {
142
+ fields: {
143
+ start: {
144
+ type: "int32",
145
+ id: 1,
146
+ },
147
+ end: {
148
+ type: "int32",
149
+ id: 2,
150
+ },
151
+ options: {
152
+ type: "ExtensionRangeOptions",
153
+ id: 3,
154
+ },
155
+ },
156
+ },
157
+ ReservedRange: {
158
+ fields: {
159
+ start: {
160
+ type: "int32",
161
+ id: 1,
162
+ },
163
+ end: {
164
+ type: "int32",
165
+ id: 2,
166
+ },
167
+ },
168
+ },
169
+ },
170
+ },
171
+ ExtensionRangeOptions: {
172
+ fields: {
173
+ uninterpreted_option: {
174
+ rule: "repeated",
175
+ type: "UninterpretedOption",
176
+ id: 999,
177
+ },
178
+ },
179
+ extensions: [[1000, 536870911]],
180
+ },
181
+ FieldDescriptorProto: {
182
+ fields: {
183
+ name: {
184
+ type: "string",
185
+ id: 1,
186
+ },
187
+ number: {
188
+ type: "int32",
189
+ id: 3,
190
+ },
191
+ label: {
192
+ type: "Label",
193
+ id: 4,
194
+ },
195
+ type: {
196
+ type: "Type",
197
+ id: 5,
198
+ },
199
+ type_name: {
200
+ type: "string",
201
+ id: 6,
202
+ },
203
+ extendee: {
204
+ type: "string",
205
+ id: 2,
206
+ },
207
+ default_value: {
208
+ type: "string",
209
+ id: 7,
210
+ },
211
+ oneof_index: {
212
+ type: "int32",
213
+ id: 9,
214
+ },
215
+ json_name: {
216
+ type: "string",
217
+ id: 10,
218
+ },
219
+ options: {
220
+ type: "FieldOptions",
221
+ id: 8,
222
+ },
223
+ proto3_optional: {
224
+ type: "bool",
225
+ id: 17,
226
+ },
227
+ },
228
+ nested: {
229
+ Type: {
230
+ values: {
231
+ TYPE_DOUBLE: 1,
232
+ TYPE_FLOAT: 2,
233
+ TYPE_INT64: 3,
234
+ TYPE_UINT64: 4,
235
+ TYPE_INT32: 5,
236
+ TYPE_FIXED64: 6,
237
+ TYPE_FIXED32: 7,
238
+ TYPE_BOOL: 8,
239
+ TYPE_STRING: 9,
240
+ TYPE_GROUP: 10,
241
+ TYPE_MESSAGE: 11,
242
+ TYPE_BYTES: 12,
243
+ TYPE_UINT32: 13,
244
+ TYPE_ENUM: 14,
245
+ TYPE_SFIXED32: 15,
246
+ TYPE_SFIXED64: 16,
247
+ TYPE_SINT32: 17,
248
+ TYPE_SINT64: 18,
249
+ },
250
+ },
251
+ Label: {
252
+ values: {
253
+ LABEL_OPTIONAL: 1,
254
+ LABEL_REQUIRED: 2,
255
+ LABEL_REPEATED: 3,
256
+ },
257
+ },
258
+ },
259
+ },
260
+ OneofDescriptorProto: {
261
+ fields: {
262
+ name: {
263
+ type: "string",
264
+ id: 1,
265
+ },
266
+ options: {
267
+ type: "OneofOptions",
268
+ id: 2,
269
+ },
270
+ },
271
+ },
272
+ EnumDescriptorProto: {
273
+ fields: {
274
+ name: {
275
+ type: "string",
276
+ id: 1,
277
+ },
278
+ value: {
279
+ rule: "repeated",
280
+ type: "EnumValueDescriptorProto",
281
+ id: 2,
282
+ },
283
+ options: {
284
+ type: "EnumOptions",
285
+ id: 3,
286
+ },
287
+ reserved_range: {
288
+ rule: "repeated",
289
+ type: "EnumReservedRange",
290
+ id: 4,
291
+ },
292
+ reserved_name: {
293
+ rule: "repeated",
294
+ type: "string",
295
+ id: 5,
296
+ },
297
+ },
298
+ nested: {
299
+ EnumReservedRange: {
300
+ fields: {
301
+ start: {
302
+ type: "int32",
303
+ id: 1,
304
+ },
305
+ end: {
306
+ type: "int32",
307
+ id: 2,
308
+ },
309
+ },
310
+ },
311
+ },
312
+ },
313
+ EnumValueDescriptorProto: {
314
+ fields: {
315
+ name: {
316
+ type: "string",
317
+ id: 1,
318
+ },
319
+ number: {
320
+ type: "int32",
321
+ id: 2,
322
+ },
323
+ options: {
324
+ type: "EnumValueOptions",
325
+ id: 3,
326
+ },
327
+ },
328
+ },
329
+ ServiceDescriptorProto: {
330
+ fields: {
331
+ name: {
332
+ type: "string",
333
+ id: 1,
334
+ },
335
+ method: {
336
+ rule: "repeated",
337
+ type: "MethodDescriptorProto",
338
+ id: 2,
339
+ },
340
+ options: {
341
+ type: "ServiceOptions",
342
+ id: 3,
343
+ },
344
+ },
345
+ },
346
+ MethodDescriptorProto: {
347
+ fields: {
348
+ name: {
349
+ type: "string",
350
+ id: 1,
351
+ },
352
+ input_type: {
353
+ type: "string",
354
+ id: 2,
355
+ },
356
+ output_type: {
357
+ type: "string",
358
+ id: 3,
359
+ },
360
+ options: {
361
+ type: "MethodOptions",
362
+ id: 4,
363
+ },
364
+ client_streaming: {
365
+ type: "bool",
366
+ id: 5,
367
+ options: {
368
+ default: false,
369
+ },
370
+ },
371
+ server_streaming: {
372
+ type: "bool",
373
+ id: 6,
374
+ options: {
375
+ default: false,
376
+ },
377
+ },
378
+ },
379
+ },
380
+ FileOptions: {
381
+ fields: {
382
+ java_package: {
383
+ type: "string",
384
+ id: 1,
385
+ },
386
+ java_outer_classname: {
387
+ type: "string",
388
+ id: 8,
389
+ },
390
+ java_multiple_files: {
391
+ type: "bool",
392
+ id: 10,
393
+ options: {
394
+ default: false,
395
+ },
396
+ },
397
+ java_generate_equals_and_hash: {
398
+ type: "bool",
399
+ id: 20,
400
+ options: {
401
+ deprecated: true,
402
+ },
403
+ },
404
+ java_string_check_utf8: {
405
+ type: "bool",
406
+ id: 27,
407
+ options: {
408
+ default: false,
409
+ },
410
+ },
411
+ optimize_for: {
412
+ type: "OptimizeMode",
413
+ id: 9,
414
+ options: {
415
+ default: "SPEED",
416
+ },
417
+ },
418
+ go_package: {
419
+ type: "string",
420
+ id: 11,
421
+ },
422
+ cc_generic_services: {
423
+ type: "bool",
424
+ id: 16,
425
+ options: {
426
+ default: false,
427
+ },
428
+ },
429
+ java_generic_services: {
430
+ type: "bool",
431
+ id: 17,
432
+ options: {
433
+ default: false,
434
+ },
435
+ },
436
+ py_generic_services: {
437
+ type: "bool",
438
+ id: 18,
439
+ options: {
440
+ default: false,
441
+ },
442
+ },
443
+ php_generic_services: {
444
+ type: "bool",
445
+ id: 42,
446
+ options: {
447
+ default: false,
448
+ },
449
+ },
450
+ deprecated: {
451
+ type: "bool",
452
+ id: 23,
453
+ options: {
454
+ default: false,
455
+ },
456
+ },
457
+ cc_enable_arenas: {
458
+ type: "bool",
459
+ id: 31,
460
+ options: {
461
+ default: true,
462
+ },
463
+ },
464
+ objc_class_prefix: {
465
+ type: "string",
466
+ id: 36,
467
+ },
468
+ csharp_namespace: {
469
+ type: "string",
470
+ id: 37,
471
+ },
472
+ swift_prefix: {
473
+ type: "string",
474
+ id: 39,
475
+ },
476
+ php_class_prefix: {
477
+ type: "string",
478
+ id: 40,
479
+ },
480
+ php_namespace: {
481
+ type: "string",
482
+ id: 41,
483
+ },
484
+ php_metadata_namespace: {
485
+ type: "string",
486
+ id: 44,
487
+ },
488
+ ruby_package: {
489
+ type: "string",
490
+ id: 45,
491
+ },
492
+ uninterpreted_option: {
493
+ rule: "repeated",
494
+ type: "UninterpretedOption",
495
+ id: 999,
496
+ },
497
+ },
498
+ extensions: [[1000, 536870911]],
499
+ reserved: [[38, 38]],
500
+ nested: {
501
+ OptimizeMode: {
502
+ values: {
503
+ SPEED: 1,
504
+ CODE_SIZE: 2,
505
+ LITE_RUNTIME: 3,
506
+ },
507
+ },
508
+ },
509
+ },
510
+ MessageOptions: {
511
+ fields: {
512
+ message_set_wire_format: {
513
+ type: "bool",
514
+ id: 1,
515
+ options: {
516
+ default: false,
517
+ },
518
+ },
519
+ no_standard_descriptor_accessor: {
520
+ type: "bool",
521
+ id: 2,
522
+ options: {
523
+ default: false,
524
+ },
525
+ },
526
+ deprecated: {
527
+ type: "bool",
528
+ id: 3,
529
+ options: {
530
+ default: false,
531
+ },
532
+ },
533
+ map_entry: {
534
+ type: "bool",
535
+ id: 7,
536
+ },
537
+ uninterpreted_option: {
538
+ rule: "repeated",
539
+ type: "UninterpretedOption",
540
+ id: 999,
541
+ },
542
+ },
543
+ extensions: [[1000, 536870911]],
544
+ reserved: [
545
+ [4, 4],
546
+ [5, 5],
547
+ [6, 6],
548
+ [8, 8],
549
+ [9, 9],
550
+ ],
551
+ },
552
+ FieldOptions: {
553
+ fields: {
554
+ ctype: {
555
+ type: "CType",
556
+ id: 1,
557
+ options: {
558
+ default: "STRING",
559
+ },
560
+ },
561
+ packed: {
562
+ type: "bool",
563
+ id: 2,
564
+ },
565
+ jstype: {
566
+ type: "JSType",
567
+ id: 6,
568
+ options: {
569
+ default: "JS_NORMAL",
570
+ },
571
+ },
572
+ lazy: {
573
+ type: "bool",
574
+ id: 5,
575
+ options: {
576
+ default: false,
577
+ },
578
+ },
579
+ deprecated: {
580
+ type: "bool",
581
+ id: 3,
582
+ options: {
583
+ default: false,
584
+ },
585
+ },
586
+ weak: {
587
+ type: "bool",
588
+ id: 10,
589
+ options: {
590
+ default: false,
591
+ },
592
+ },
593
+ uninterpreted_option: {
594
+ rule: "repeated",
595
+ type: "UninterpretedOption",
596
+ id: 999,
597
+ },
598
+ },
599
+ extensions: [[1000, 536870911]],
600
+ reserved: [[4, 4]],
601
+ nested: {
602
+ CType: {
603
+ values: {
604
+ STRING: 0,
605
+ CORD: 1,
606
+ STRING_PIECE: 2,
607
+ },
608
+ },
609
+ JSType: {
610
+ values: {
611
+ JS_NORMAL: 0,
612
+ JS_STRING: 1,
613
+ JS_NUMBER: 2,
614
+ },
615
+ },
616
+ },
617
+ },
618
+ OneofOptions: {
619
+ fields: {
620
+ uninterpreted_option: {
621
+ rule: "repeated",
622
+ type: "UninterpretedOption",
623
+ id: 999,
624
+ },
625
+ },
626
+ extensions: [[1000, 536870911]],
627
+ },
628
+ EnumOptions: {
629
+ fields: {
630
+ allow_alias: {
631
+ type: "bool",
632
+ id: 2,
633
+ },
634
+ deprecated: {
635
+ type: "bool",
636
+ id: 3,
637
+ options: {
638
+ default: false,
639
+ },
640
+ },
641
+ uninterpreted_option: {
642
+ rule: "repeated",
643
+ type: "UninterpretedOption",
644
+ id: 999,
645
+ },
646
+ },
647
+ extensions: [[1000, 536870911]],
648
+ reserved: [[5, 5]],
649
+ },
650
+ EnumValueOptions: {
651
+ fields: {
652
+ deprecated: {
653
+ type: "bool",
654
+ id: 1,
655
+ options: {
656
+ default: false,
657
+ },
658
+ },
659
+ uninterpreted_option: {
660
+ rule: "repeated",
661
+ type: "UninterpretedOption",
662
+ id: 999,
663
+ },
664
+ },
665
+ extensions: [[1000, 536870911]],
666
+ },
667
+ ServiceOptions: {
668
+ fields: {
669
+ deprecated: {
670
+ type: "bool",
671
+ id: 33,
672
+ options: {
673
+ default: false,
674
+ },
675
+ },
676
+ uninterpreted_option: {
677
+ rule: "repeated",
678
+ type: "UninterpretedOption",
679
+ id: 999,
680
+ },
681
+ },
682
+ extensions: [[1000, 536870911]],
683
+ },
684
+ MethodOptions: {
685
+ fields: {
686
+ deprecated: {
687
+ type: "bool",
688
+ id: 33,
689
+ options: {
690
+ default: false,
691
+ },
692
+ },
693
+ idempotency_level: {
694
+ type: "IdempotencyLevel",
695
+ id: 34,
696
+ options: {
697
+ default: "IDEMPOTENCY_UNKNOWN",
698
+ },
699
+ },
700
+ uninterpreted_option: {
701
+ rule: "repeated",
702
+ type: "UninterpretedOption",
703
+ id: 999,
704
+ },
705
+ },
706
+ extensions: [[1000, 536870911]],
707
+ nested: {
708
+ IdempotencyLevel: {
709
+ values: {
710
+ IDEMPOTENCY_UNKNOWN: 0,
711
+ NO_SIDE_EFFECTS: 1,
712
+ IDEMPOTENT: 2,
713
+ },
714
+ },
715
+ },
716
+ },
717
+ UninterpretedOption: {
718
+ fields: {
719
+ name: {
720
+ rule: "repeated",
721
+ type: "NamePart",
722
+ id: 2,
723
+ },
724
+ identifier_value: {
725
+ type: "string",
726
+ id: 3,
727
+ },
728
+ positive_int_value: {
729
+ type: "uint64",
730
+ id: 4,
731
+ },
732
+ negative_int_value: {
733
+ type: "int64",
734
+ id: 5,
735
+ },
736
+ double_value: {
737
+ type: "double",
738
+ id: 6,
739
+ },
740
+ string_value: {
741
+ type: "bytes",
742
+ id: 7,
743
+ },
744
+ aggregate_value: {
745
+ type: "string",
746
+ id: 8,
747
+ },
748
+ },
749
+ nested: {
750
+ NamePart: {
751
+ fields: {
752
+ name_part: {
753
+ rule: "required",
754
+ type: "string",
755
+ id: 1,
756
+ },
757
+ is_extension: {
758
+ rule: "required",
759
+ type: "bool",
760
+ id: 2,
761
+ },
762
+ },
763
+ },
764
+ },
765
+ },
766
+ SourceCodeInfo: {
767
+ fields: {
768
+ location: {
769
+ rule: "repeated",
770
+ type: "Location",
771
+ id: 1,
772
+ },
773
+ },
774
+ nested: {
775
+ Location: {
776
+ fields: {
777
+ path: {
778
+ rule: "repeated",
779
+ type: "int32",
780
+ id: 1,
781
+ },
782
+ span: {
783
+ rule: "repeated",
784
+ type: "int32",
785
+ id: 2,
786
+ },
787
+ leading_comments: {
788
+ type: "string",
789
+ id: 3,
790
+ },
791
+ trailing_comments: {
792
+ type: "string",
793
+ id: 4,
794
+ },
795
+ leading_detached_comments: {
796
+ rule: "repeated",
797
+ type: "string",
798
+ id: 6,
799
+ },
800
+ },
801
+ },
802
+ },
803
+ },
804
+ GeneratedCodeInfo: {
805
+ fields: {
806
+ annotation: {
807
+ rule: "repeated",
808
+ type: "Annotation",
809
+ id: 1,
810
+ },
811
+ },
812
+ nested: {
813
+ Annotation: {
814
+ fields: {
815
+ path: {
816
+ rule: "repeated",
817
+ type: "int32",
818
+ id: 1,
819
+ },
820
+ source_file: {
821
+ type: "string",
822
+ id: 2,
823
+ },
824
+ begin: {
825
+ type: "int32",
826
+ id: 3,
827
+ },
828
+ end: {
829
+ type: "int32",
830
+ id: 4,
831
+ },
832
+ },
833
+ },
834
+ },
835
+ },
836
+ },
837
+ },
838
+ },
839
+ },
840
+ };