koilib 9.0.0 → 9.1.1

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/dist/koinos.js +1002 -79
  2. package/dist/koinos.min.js +1 -1
  3. package/lib/Contract.d.ts +1 -1
  4. package/lib/Contract.js +1 -1
  5. package/lib/Contract.js.map +1 -1
  6. package/lib/Provider.d.ts +2 -8
  7. package/lib/Provider.js +3 -9
  8. package/lib/Provider.js.map +1 -1
  9. package/lib/Serializer.js +7 -1
  10. package/lib/Serializer.js.map +1 -1
  11. package/lib/abis/nicknamesAbi.d.ts +29 -0
  12. package/lib/abis/nicknamesAbi.js +916 -0
  13. package/lib/abis/nicknamesAbi.js.map +1 -0
  14. package/lib/browser/Contract.d.ts +1 -1
  15. package/lib/browser/Contract.js +1 -1
  16. package/lib/browser/Contract.js.map +1 -1
  17. package/lib/browser/Provider.d.ts +2 -8
  18. package/lib/browser/Provider.js +3 -9
  19. package/lib/browser/Provider.js.map +1 -1
  20. package/lib/browser/Serializer.js +7 -1
  21. package/lib/browser/Serializer.js.map +1 -1
  22. package/lib/browser/abis/nicknamesAbi.d.ts +29 -0
  23. package/lib/browser/abis/nicknamesAbi.js +916 -0
  24. package/lib/browser/abis/nicknamesAbi.js.map +1 -0
  25. package/lib/browser/interface.d.ts +2 -8
  26. package/lib/browser/protobuf/googleProtobufDescriptor.d.ts +834 -0
  27. package/lib/browser/protobuf/googleProtobufDescriptor.js +844 -0
  28. package/lib/browser/protobuf/googleProtobufDescriptor.js.map +1 -0
  29. package/lib/browser/utils.d.ts +1 -0
  30. package/lib/browser/utils.js +6 -0
  31. package/lib/browser/utils.js.map +1 -1
  32. package/lib/interface.d.ts +2 -8
  33. package/lib/protobuf/googleProtobufDescriptor.d.ts +834 -0
  34. package/lib/protobuf/googleProtobufDescriptor.js +844 -0
  35. package/lib/protobuf/googleProtobufDescriptor.js.map +1 -0
  36. package/lib/utils.d.ts +1 -0
  37. package/lib/utils.js +6 -0
  38. package/lib/utils.js.map +1 -1
  39. package/package.json +2 -2
  40. package/src/Contract.ts +2 -2
  41. package/src/Provider.ts +3 -9
  42. package/src/Serializer.ts +7 -1
  43. package/src/abis/nicknamesAbi.ts +922 -0
  44. package/src/interface.ts +2 -8
  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
  49. package/src/utils.ts +3 -0
@@ -0,0 +1,922 @@
1
+ import { AnyNestedObject } from "protobufjs";
2
+ import { Abi } from "../interface";
3
+
4
+ /**
5
+ * ABI for Nicknames
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { Contract, Provider, utils } from "koilib";
10
+ *
11
+ * const provider = new Provider("https://api.koinos.io");
12
+ * const nicknamesContract = new Contract({
13
+ * id: "1KD9Es7LBBjA1FY3ViCgQJ7e6WH1ipKbhz",
14
+ * provider,
15
+ * abi: utils.nicknamesAbi,
16
+ * });
17
+ * const nicknames = nicknamesContract.functions;
18
+ *
19
+ * ...
20
+ *
21
+ * // get the address linked to the nickname "pob"
22
+ * const pobId = `0x${utils.toHexString(new TextEncoder().encode("pob"))}`;
23
+ * const { result } = await nicknames.owner_of({ token_id: pobId });
24
+ * console.log(result);
25
+ *
26
+ * // { value: '159myq5YUhhoVWu3wsHKHiJYKPKGUrGiyv' }
27
+ })();
28
+ * ```
29
+ */
30
+ export const nicknamesAbi: Abi = {
31
+ methods: {
32
+ verify_valid_name: {
33
+ argument: "common.str",
34
+ return: "common.str",
35
+ description: "Verify if a new name is valid",
36
+ entry_point: 0x5ad33d9a,
37
+ read_only: true,
38
+ },
39
+ get_tabi: {
40
+ argument: "nft.token",
41
+ return: "nicknames.get_tabi_result",
42
+ description: "Get TABI",
43
+ entry_point: 0x653c5618,
44
+ read_only: true,
45
+ },
46
+ get_main_token: {
47
+ argument: "common.address",
48
+ return: "nft.token",
49
+ description: "Get main token of an account",
50
+ entry_point: 0x3ecda7bf,
51
+ read_only: true,
52
+ },
53
+ get_extended_metadata: {
54
+ argument: "nft.token",
55
+ return: "nicknames.extended_metadata",
56
+ description: "Get extended metadata",
57
+ entry_point: 0x0327b375,
58
+ read_only: true,
59
+ },
60
+ get_address_by_token_id: {
61
+ argument: "nft.token",
62
+ return: "nicknames.address_data",
63
+ description:
64
+ "Resolve the address of a nickname by providing the token id",
65
+ entry_point: 0x1d5eac7d,
66
+ read_only: true,
67
+ },
68
+ get_address: {
69
+ argument: "common.str",
70
+ return: "nicknames.address_data",
71
+ description: "Resolve the address of a nickname",
72
+ entry_point: 0xa61ae5e8,
73
+ read_only: true,
74
+ },
75
+ get_tokens_by_address: {
76
+ argument: "nicknames.get_tokens_by_address_args",
77
+ return: "nft.token_ids",
78
+ description: "Get tokens owned by an address",
79
+ entry_point: 0x606f788b,
80
+ read_only: true,
81
+ },
82
+ mint: {
83
+ argument: "nft.mint_args",
84
+ return: "",
85
+ description: "Create new name",
86
+ entry_point: 0xdc6f17bb,
87
+ read_only: false,
88
+ },
89
+ burn: {
90
+ argument: "nft.burn_args",
91
+ return: "",
92
+ description: "Delete a name",
93
+ entry_point: 0x859facc5,
94
+ read_only: false,
95
+ },
96
+ transfer: {
97
+ argument: "nft.transfer_args",
98
+ return: "",
99
+ description: "Transfer Name",
100
+ entry_point: 0x27f576ca,
101
+ read_only: false,
102
+ },
103
+ set_tabi: {
104
+ argument: "nicknames.set_tabi_args",
105
+ return: "",
106
+ description: "Set Text ABI for a token",
107
+ entry_point: 0xb2b70965,
108
+ read_only: false,
109
+ },
110
+ set_metadata: {
111
+ argument: "nft.metadata_args",
112
+ return: "",
113
+ description: "Set metadata",
114
+ entry_point: 0x3d59af19,
115
+ read_only: false,
116
+ },
117
+ set_main_token: {
118
+ argument: "nft.token",
119
+ return: "",
120
+ description: "Set main token",
121
+ entry_point: 0x0b6adde6,
122
+ read_only: false,
123
+ },
124
+ set_address: {
125
+ argument: "nicknames.set_address_args",
126
+ return: "",
127
+ description: "Set address",
128
+ entry_point: 0x5cffdf33,
129
+ read_only: false,
130
+ },
131
+ set_extended_metadata: {
132
+ argument: "nicknames.set_extended_metadata_args",
133
+ return: "",
134
+ description:
135
+ "Set extended metadata (including the address to which the name resolves)",
136
+ entry_point: 0xef128ca3,
137
+ read_only: false,
138
+ },
139
+ name: {
140
+ argument: "",
141
+ return: "common.str",
142
+ description: "Get name of the NFT",
143
+ entry_point: 0x82a3537f,
144
+ read_only: true,
145
+ },
146
+ symbol: {
147
+ argument: "",
148
+ return: "common.str",
149
+ description: "Get the symbol of the NFT",
150
+ entry_point: 0xb76a7ca1,
151
+ read_only: true,
152
+ },
153
+ uri: {
154
+ argument: "",
155
+ return: "common.str",
156
+ description: "Get URI of the NFT",
157
+ entry_point: 0x70e5d7b6,
158
+ read_only: true,
159
+ },
160
+ get_info: {
161
+ argument: "",
162
+ return: "nft.info",
163
+ description: "Get name, symbol and decimals",
164
+ entry_point: 0xbd7f6850,
165
+ read_only: true,
166
+ },
167
+ owner: {
168
+ argument: "",
169
+ return: "common.address",
170
+ description: "Get the owner of the collection",
171
+ entry_point: 0x4c102969,
172
+ read_only: true,
173
+ },
174
+ total_supply: {
175
+ argument: "",
176
+ return: "common.uint64",
177
+ description: "Get total supply",
178
+ entry_point: 0xb0da3934,
179
+ read_only: true,
180
+ },
181
+ royalties: {
182
+ argument: "",
183
+ return: "nft.royalties",
184
+ description: "Get royalties",
185
+ entry_point: 0x36e90cd0,
186
+ read_only: true,
187
+ },
188
+ balance_of: {
189
+ argument: "nft.balance_of_args",
190
+ return: "common.uint64",
191
+ description: "Get balance of an account",
192
+ entry_point: 0x5c721497,
193
+ read_only: true,
194
+ },
195
+ owner_of: {
196
+ argument: "nft.token",
197
+ return: "common.address",
198
+ description: "Get the owner of a token",
199
+ entry_point: 0xed61c847,
200
+ read_only: true,
201
+ },
202
+ metadata_of: {
203
+ argument: "nft.token",
204
+ return: "common.str",
205
+ description: "Get the metadata of a token",
206
+ entry_point: 0x176c8f7f,
207
+ read_only: true,
208
+ },
209
+ get_tokens: {
210
+ argument: "nft.get_tokens_args",
211
+ return: "nft.token_ids",
212
+ description: "Get list of token IDs",
213
+ entry_point: 0x7d5b5ed7,
214
+ read_only: true,
215
+ },
216
+ get_tokens_by_owner: {
217
+ argument: "nft.get_tokens_by_owner_args",
218
+ return: "nft.token_ids",
219
+ description: "Get tokens owned by an address",
220
+ entry_point: 0xfc13eb75,
221
+ read_only: true,
222
+ },
223
+ get_approved: {
224
+ argument: "nft.token",
225
+ return: "common.address",
226
+ description: "Check if an account is approved to operate a token ID",
227
+ entry_point: 0x4c731020,
228
+ read_only: true,
229
+ },
230
+ is_approved_for_all: {
231
+ argument: "nft.is_approved_for_all_args",
232
+ return: "common.boole",
233
+ description:
234
+ "Check if an account is approved to operate all tokens owned by other account",
235
+ entry_point: 0xe7ab8ce5,
236
+ read_only: true,
237
+ },
238
+ get_operator_approvals: {
239
+ argument: "nft.get_operators_args",
240
+ return: "nft.get_operators_return",
241
+ description: "Get allowances of an account",
242
+ entry_point: 0xdb1bf60e,
243
+ read_only: true,
244
+ },
245
+ transfer_ownership: {
246
+ argument: "common.address",
247
+ return: "",
248
+ description: "Transfer ownership of the collection",
249
+ entry_point: 0x394be702,
250
+ read_only: false,
251
+ },
252
+ set_royalties: {
253
+ argument: "nft.royalties",
254
+ return: "",
255
+ description: "Set royalties",
256
+ entry_point: 0x3b5bb56b,
257
+ read_only: false,
258
+ },
259
+ approve: {
260
+ argument: "nft.approve_args",
261
+ return: "",
262
+ description:
263
+ "Grant permissions to other account to manage a specific Token owned by the user. The user must approve only the accounts he trust.",
264
+ entry_point: 0x74e21680,
265
+ read_only: false,
266
+ },
267
+ set_approval_for_all: {
268
+ argument: "nft.set_approval_for_all_args",
269
+ return: "",
270
+ description:
271
+ "Grant permissions to other account to manage all Tokens owned by the user. The user must approve only the accounts he trust.",
272
+ entry_point: 0x20442216,
273
+ read_only: false,
274
+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Z2IGcHJvdG8z",
278
+ koilib_types: {
279
+ nested: {
280
+ common: {
281
+ nested: {
282
+ str: {
283
+ fields: {
284
+ value: {
285
+ type: "string",
286
+ id: 1,
287
+ },
288
+ },
289
+ },
290
+ uint32: {
291
+ fields: {
292
+ value: {
293
+ type: "uint32",
294
+ id: 1,
295
+ },
296
+ },
297
+ },
298
+ uint64: {
299
+ fields: {
300
+ value: {
301
+ type: "uint64",
302
+ id: 1,
303
+ options: {
304
+ jstype: "JS_STRING",
305
+ },
306
+ },
307
+ },
308
+ },
309
+ boole: {
310
+ fields: {
311
+ value: {
312
+ type: "bool",
313
+ id: 1,
314
+ },
315
+ },
316
+ },
317
+ address: {
318
+ fields: {
319
+ value: {
320
+ type: "bytes",
321
+ id: 1,
322
+ options: {
323
+ "(koinos.btype)": "ADDRESS",
324
+ },
325
+ },
326
+ },
327
+ },
328
+ list_args: {
329
+ fields: {
330
+ start: {
331
+ type: "bytes",
332
+ id: 1,
333
+ options: {
334
+ "(koinos.btype)": "ADDRESS",
335
+ },
336
+ },
337
+ limit: {
338
+ type: "int32",
339
+ id: 2,
340
+ },
341
+ descending: {
342
+ type: "bool",
343
+ id: 3,
344
+ },
345
+ },
346
+ },
347
+ addresses: {
348
+ fields: {
349
+ accounts: {
350
+ rule: "repeated",
351
+ type: "bytes",
352
+ id: 1,
353
+ options: {
354
+ "(koinos.btype)": "ADDRESS",
355
+ },
356
+ },
357
+ },
358
+ },
359
+ },
360
+ },
361
+ koinos: {
362
+ options: {
363
+ go_package: "github.com/koinos/koinos-proto-golang/koinos",
364
+ },
365
+ nested: {
366
+ bytes_type: {
367
+ values: {
368
+ BASE64: 0,
369
+ BASE58: 1,
370
+ HEX: 2,
371
+ BLOCK_ID: 3,
372
+ TRANSACTION_ID: 4,
373
+ CONTRACT_ID: 5,
374
+ ADDRESS: 6,
375
+ },
376
+ },
377
+ _btype: {
378
+ oneof: ["btype"],
379
+ } as AnyNestedObject,
380
+ btype: {
381
+ type: "bytes_type",
382
+ id: 50000,
383
+ extend: "google.protobuf.FieldOptions",
384
+ options: {
385
+ proto3_optional: true,
386
+ },
387
+ },
388
+ },
389
+ },
390
+ nft: {
391
+ nested: {
392
+ royalty: {
393
+ fields: {
394
+ percentage: {
395
+ type: "uint64",
396
+ id: 1,
397
+ options: {
398
+ jstype: "JS_STRING",
399
+ },
400
+ },
401
+ address: {
402
+ type: "bytes",
403
+ id: 2,
404
+ options: {
405
+ "(koinos.btype)": "ADDRESS",
406
+ },
407
+ },
408
+ },
409
+ },
410
+ royalties: {
411
+ fields: {
412
+ value: {
413
+ rule: "repeated",
414
+ type: "royalty",
415
+ id: 1,
416
+ },
417
+ },
418
+ },
419
+ metadata_args: {
420
+ fields: {
421
+ token_id: {
422
+ type: "bytes",
423
+ id: 1,
424
+ options: {
425
+ "(koinos.btype)": "HEX",
426
+ },
427
+ },
428
+ metadata: {
429
+ type: "string",
430
+ id: 2,
431
+ },
432
+ },
433
+ },
434
+ info: {
435
+ fields: {
436
+ name: {
437
+ type: "string",
438
+ id: 1,
439
+ },
440
+ symbol: {
441
+ type: "string",
442
+ id: 2,
443
+ },
444
+ uri: {
445
+ type: "string",
446
+ id: 3,
447
+ },
448
+ description: {
449
+ type: "string",
450
+ id: 4,
451
+ },
452
+ },
453
+ },
454
+ balance_of_args: {
455
+ fields: {
456
+ owner: {
457
+ type: "bytes",
458
+ id: 1,
459
+ options: {
460
+ "(koinos.btype)": "ADDRESS",
461
+ },
462
+ },
463
+ },
464
+ },
465
+ token: {
466
+ fields: {
467
+ token_id: {
468
+ type: "bytes",
469
+ id: 1,
470
+ options: {
471
+ "(koinos.btype)": "HEX",
472
+ },
473
+ },
474
+ },
475
+ },
476
+ is_approved_for_all_args: {
477
+ fields: {
478
+ owner: {
479
+ type: "bytes",
480
+ id: 1,
481
+ options: {
482
+ "(koinos.btype)": "ADDRESS",
483
+ },
484
+ },
485
+ operator: {
486
+ type: "bytes",
487
+ id: 2,
488
+ options: {
489
+ "(koinos.btype)": "ADDRESS",
490
+ },
491
+ },
492
+ },
493
+ },
494
+ mint_args: {
495
+ fields: {
496
+ to: {
497
+ type: "bytes",
498
+ id: 1,
499
+ options: {
500
+ "(koinos.btype)": "ADDRESS",
501
+ },
502
+ },
503
+ token_id: {
504
+ type: "bytes",
505
+ id: 2,
506
+ options: {
507
+ "(koinos.btype)": "HEX",
508
+ },
509
+ },
510
+ },
511
+ },
512
+ burn_args: {
513
+ fields: {
514
+ token_id: {
515
+ type: "bytes",
516
+ id: 1,
517
+ options: {
518
+ "(koinos.btype)": "HEX",
519
+ },
520
+ },
521
+ },
522
+ },
523
+ transfer_args: {
524
+ fields: {
525
+ from: {
526
+ type: "bytes",
527
+ id: 1,
528
+ options: {
529
+ "(koinos.btype)": "ADDRESS",
530
+ },
531
+ },
532
+ to: {
533
+ type: "bytes",
534
+ id: 2,
535
+ options: {
536
+ "(koinos.btype)": "ADDRESS",
537
+ },
538
+ },
539
+ token_id: {
540
+ type: "bytes",
541
+ id: 3,
542
+ options: {
543
+ "(koinos.btype)": "HEX",
544
+ },
545
+ },
546
+ memo: {
547
+ type: "string",
548
+ id: 4,
549
+ },
550
+ },
551
+ },
552
+ approve_args: {
553
+ fields: {
554
+ approver_address: {
555
+ type: "bytes",
556
+ id: 1,
557
+ options: {
558
+ "(koinos.btype)": "ADDRESS",
559
+ },
560
+ },
561
+ to: {
562
+ type: "bytes",
563
+ id: 2,
564
+ options: {
565
+ "(koinos.btype)": "ADDRESS",
566
+ },
567
+ },
568
+ token_id: {
569
+ type: "bytes",
570
+ id: 3,
571
+ options: {
572
+ "(koinos.btype)": "HEX",
573
+ },
574
+ },
575
+ },
576
+ },
577
+ set_approval_for_all_args: {
578
+ fields: {
579
+ approver_address: {
580
+ type: "bytes",
581
+ id: 1,
582
+ options: {
583
+ "(koinos.btype)": "ADDRESS",
584
+ },
585
+ },
586
+ operator_address: {
587
+ type: "bytes",
588
+ id: 2,
589
+ options: {
590
+ "(koinos.btype)": "ADDRESS",
591
+ },
592
+ },
593
+ approved: {
594
+ type: "bool",
595
+ id: 3,
596
+ },
597
+ },
598
+ },
599
+ get_operators_args: {
600
+ fields: {
601
+ owner: {
602
+ type: "bytes",
603
+ id: 1,
604
+ options: {
605
+ "(koinos.btype)": "ADDRESS",
606
+ },
607
+ },
608
+ start: {
609
+ type: "bytes",
610
+ id: 2,
611
+ options: {
612
+ "(koinos.btype)": "ADDRESS",
613
+ },
614
+ },
615
+ limit: {
616
+ type: "int32",
617
+ id: 3,
618
+ },
619
+ descending: {
620
+ type: "bool",
621
+ id: 4,
622
+ },
623
+ },
624
+ },
625
+ get_operators_return: {
626
+ fields: {
627
+ owner: {
628
+ type: "bytes",
629
+ id: 1,
630
+ options: {
631
+ "(koinos.btype)": "ADDRESS",
632
+ },
633
+ },
634
+ operators: {
635
+ rule: "repeated",
636
+ type: "bytes",
637
+ id: 2,
638
+ options: {
639
+ "(koinos.btype)": "ADDRESS",
640
+ },
641
+ },
642
+ },
643
+ },
644
+ get_tokens_args: {
645
+ fields: {
646
+ start: {
647
+ type: "bytes",
648
+ id: 1,
649
+ options: {
650
+ "(koinos.btype)": "HEX",
651
+ },
652
+ },
653
+ limit: {
654
+ type: "int32",
655
+ id: 2,
656
+ },
657
+ descending: {
658
+ type: "bool",
659
+ id: 3,
660
+ },
661
+ },
662
+ },
663
+ get_tokens_by_owner_args: {
664
+ fields: {
665
+ owner: {
666
+ type: "bytes",
667
+ id: 1,
668
+ options: {
669
+ "(koinos.btype)": "ADDRESS",
670
+ },
671
+ },
672
+ start: {
673
+ type: "bytes",
674
+ id: 2,
675
+ options: {
676
+ "(koinos.btype)": "HEX",
677
+ },
678
+ },
679
+ limit: {
680
+ type: "int32",
681
+ id: 3,
682
+ },
683
+ descending: {
684
+ type: "bool",
685
+ id: 4,
686
+ },
687
+ },
688
+ },
689
+ token_ids: {
690
+ fields: {
691
+ token_ids: {
692
+ rule: "repeated",
693
+ type: "bytes",
694
+ id: 1,
695
+ options: {
696
+ "(koinos.btype)": "HEX",
697
+ },
698
+ },
699
+ },
700
+ },
701
+ },
702
+ },
703
+ nicknames: {
704
+ nested: {
705
+ tabi_item: {
706
+ fields: {
707
+ pattern: {
708
+ type: "string",
709
+ id: 1,
710
+ },
711
+ entry_point: {
712
+ type: "uint32",
713
+ id: 2,
714
+ },
715
+ },
716
+ },
717
+ tabi: {
718
+ fields: {
719
+ items: {
720
+ rule: "repeated",
721
+ type: "tabi_item",
722
+ id: 1,
723
+ },
724
+ },
725
+ },
726
+ get_tabi_result: {
727
+ fields: {
728
+ items: {
729
+ rule: "repeated",
730
+ type: "tabi_item",
731
+ id: 1,
732
+ },
733
+ address: {
734
+ type: "bytes",
735
+ id: 2,
736
+ options: {
737
+ "(koinos.btype)": "ADDRESS",
738
+ },
739
+ },
740
+ },
741
+ },
742
+ set_tabi_args: {
743
+ fields: {
744
+ token_id: {
745
+ type: "bytes",
746
+ id: 1,
747
+ options: {
748
+ "(koinos.btype)": "HEX",
749
+ },
750
+ },
751
+ tabi: {
752
+ type: "tabi",
753
+ id: 2,
754
+ },
755
+ },
756
+ },
757
+ set_address_args: {
758
+ fields: {
759
+ token_id: {
760
+ type: "bytes",
761
+ id: 1,
762
+ options: {
763
+ "(koinos.btype)": "HEX",
764
+ },
765
+ },
766
+ address: {
767
+ type: "bytes",
768
+ id: 2,
769
+ options: {
770
+ "(koinos.btype)": "ADDRESS",
771
+ },
772
+ },
773
+ gov_proposal_update: {
774
+ type: "bool",
775
+ id: 3,
776
+ },
777
+ },
778
+ },
779
+ set_extended_metadata_args: {
780
+ fields: {
781
+ token_id: {
782
+ type: "bytes",
783
+ id: 1,
784
+ options: {
785
+ "(koinos.btype)": "HEX",
786
+ },
787
+ },
788
+ permanent_address: {
789
+ type: "bool",
790
+ id: 3,
791
+ },
792
+ address_modifiable_only_by_governance: {
793
+ type: "bool",
794
+ id: 4,
795
+ },
796
+ other: {
797
+ type: "bytes",
798
+ id: 10,
799
+ },
800
+ },
801
+ },
802
+ extended_metadata: {
803
+ fields: {
804
+ token_id: {
805
+ type: "bytes",
806
+ id: 1,
807
+ options: {
808
+ "(koinos.btype)": "HEX",
809
+ },
810
+ },
811
+ permanent_address: {
812
+ type: "bool",
813
+ id: 3,
814
+ },
815
+ address_modifiable_only_by_governance: {
816
+ type: "bool",
817
+ id: 4,
818
+ },
819
+ other: {
820
+ type: "bytes",
821
+ id: 10,
822
+ },
823
+ },
824
+ },
825
+ address_data: {
826
+ fields: {
827
+ value: {
828
+ type: "bytes",
829
+ id: 1,
830
+ options: {
831
+ "(koinos.btype)": "ADDRESS",
832
+ },
833
+ },
834
+ permanent_address: {
835
+ type: "bool",
836
+ id: 2,
837
+ },
838
+ address_modifiable_only_by_governance: {
839
+ type: "bool",
840
+ id: 3,
841
+ },
842
+ },
843
+ },
844
+ get_tokens_by_address_args: {
845
+ fields: {
846
+ address: {
847
+ type: "bytes",
848
+ id: 1,
849
+ options: {
850
+ "(koinos.btype)": "ADDRESS",
851
+ },
852
+ },
853
+ start: {
854
+ type: "bytes",
855
+ id: 2,
856
+ options: {
857
+ "(koinos.btype)": "HEX",
858
+ },
859
+ },
860
+ limit: {
861
+ type: "int32",
862
+ id: 3,
863
+ },
864
+ descending: {
865
+ type: "bool",
866
+ id: 4,
867
+ },
868
+ },
869
+ },
870
+ },
871
+ },
872
+ },
873
+ },
874
+ events: {
875
+ "collections.mint_event": {
876
+ type: "nft.mint_args",
877
+ argument: "nft.mint_args",
878
+ },
879
+ "collections.burn_event": {
880
+ type: "nft.burn_args",
881
+ argument: "nft.burn_args",
882
+ },
883
+ "collections.transfer_event": {
884
+ type: "nft.transfer_args",
885
+ argument: "nft.transfer_args",
886
+ },
887
+ "nicknames.set_tabi": {
888
+ type: "nicknames.set_tabi_args",
889
+ argument: "nicknames.set_tabi_args",
890
+ },
891
+ "collections.set_metadata_event": {
892
+ type: "nft.metadata_args",
893
+ argument: "nft.metadata_args",
894
+ },
895
+ address_updated: {
896
+ type: "nicknames.set_address_args",
897
+ argument: "nicknames.set_address_args",
898
+ },
899
+ extended_metadata_updated: {
900
+ type: "nicknames.extended_metadata",
901
+ argument: "nicknames.extended_metadata",
902
+ },
903
+ "collections.owner_event": {
904
+ type: "common.address",
905
+ argument: "common.address",
906
+ },
907
+ "collections.royalties_event": {
908
+ type: "nft.royalties",
909
+ argument: "nft.royalties",
910
+ },
911
+ "collections.token_approval_event": {
912
+ type: "nft.approve_args",
913
+ argument: "nft.approve_args",
914
+ },
915
+ "collections.operator_approval_event": {
916
+ type: "nft.set_approval_for_all_args",
917
+ argument: "nft.set_approval_for_all_args",
918
+ },
919
+ },
920
+ };
921
+
922
+ export default nicknamesAbi;