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