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