@subwallet/extension-base 1.1.7-0 → 1.1.9-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 (47) hide show
  1. package/background/KoniTypes.d.ts +10 -0
  2. package/cjs/koni/api/dotsama/domain.js +56 -0
  3. package/cjs/koni/api/nft/acala_nft/index.js +1 -1
  4. package/cjs/koni/api/nft/karura_nft/index.js +1 -1
  5. package/cjs/koni/api/nft/nft.js +3 -0
  6. package/cjs/koni/api/nft/wasm_nft/index.js +25 -7
  7. package/cjs/koni/api/staking/bonding/relayChain.js +12 -2
  8. package/cjs/koni/api/tokens/wasm/index.js +14 -0
  9. package/cjs/koni/background/cron.js +1 -1
  10. package/cjs/koni/background/handlers/Extension.js +13 -0
  11. package/cjs/koni/background/handlers/State.js +3 -0
  12. package/cjs/koni/background/subscription.js +3 -1
  13. package/cjs/packageInfo.js +1 -1
  14. package/cjs/services/chain-service/helper/index.js +8 -2
  15. package/cjs/services/chain-service/index.js +20 -2
  16. package/cjs/services/migration-service/scripts/DeleteChain.js +21 -0
  17. package/cjs/services/migration-service/scripts/index.js +3 -1
  18. package/cjs/services/transaction-service/utils.js +4 -1
  19. package/cjs/services/wallet-connect-service/index.js +19 -10
  20. package/koni/api/dotsama/domain.d.ts +10 -0
  21. package/koni/api/dotsama/domain.js +41 -0
  22. package/koni/api/nft/acala_nft/index.js +1 -1
  23. package/koni/api/nft/karura_nft/index.js +1 -1
  24. package/koni/api/nft/nft.js +3 -0
  25. package/koni/api/nft/wasm_nft/index.js +26 -8
  26. package/koni/api/staking/bonding/relayChain.js +12 -2
  27. package/koni/api/tokens/wasm/index.d.ts +2 -0
  28. package/koni/api/tokens/wasm/index.js +13 -1
  29. package/koni/background/cron.js +1 -1
  30. package/koni/background/handlers/Extension.d.ts +2 -0
  31. package/koni/background/handlers/Extension.js +13 -0
  32. package/koni/background/handlers/State.d.ts +1 -0
  33. package/koni/background/handlers/State.js +3 -0
  34. package/koni/background/subscription.js +3 -1
  35. package/package.json +19 -6
  36. package/packageInfo.js +1 -1
  37. package/services/chain-service/helper/azero_domain_registry_abi.json +5428 -0
  38. package/services/chain-service/helper/index.d.ts +2 -0
  39. package/services/chain-service/helper/index.js +5 -1
  40. package/services/chain-service/helper/pink_psp34_abi.json +2758 -0
  41. package/services/chain-service/index.d.ts +1 -0
  42. package/services/chain-service/index.js +20 -2
  43. package/services/migration-service/scripts/DeleteChain.d.ts +4 -0
  44. package/services/migration-service/scripts/DeleteChain.js +13 -0
  45. package/services/migration-service/scripts/index.js +3 -1
  46. package/services/transaction-service/utils.js +4 -1
  47. package/services/wallet-connect-service/index.js +19 -10
@@ -0,0 +1,2758 @@
1
+ {
2
+ "source": {
3
+ "hash": "0xd9678c9068ae65df331f084be77e9efd059493e99a26e0ce28d81cf5c5edf9db",
4
+ "language": "ink! 4.2.0",
5
+ "compiler": "rustc 1.68.0-nightly",
6
+ "build_info": {
7
+ "build_mode": "Release",
8
+ "cargo_contract_version": "2.2.1",
9
+ "rust_toolchain": "nightly-aarch64-apple-darwin",
10
+ "wasm_opt_settings": {
11
+ "keep_debug_symbols": false,
12
+ "optimization_passes": "Z"
13
+ }
14
+ }
15
+ },
16
+ "contract": {
17
+ "name": "pinkpsp34",
18
+ "version": "0.1.0",
19
+ "authors": [
20
+ "[Mario] <[mario@arrakis.com]>"
21
+ ]
22
+ },
23
+ "spec": {
24
+ "constructors": [
25
+ {
26
+ "args": [
27
+ {
28
+ "label": "name",
29
+ "type": {
30
+ "displayName": [
31
+ "String"
32
+ ],
33
+ "type": 8
34
+ }
35
+ },
36
+ {
37
+ "label": "symbol",
38
+ "type": {
39
+ "displayName": [
40
+ "String"
41
+ ],
42
+ "type": 8
43
+ }
44
+ },
45
+ {
46
+ "label": "max_supply",
47
+ "type": {
48
+ "displayName": [
49
+ "u64"
50
+ ],
51
+ "type": 6
52
+ }
53
+ },
54
+ {
55
+ "label": "owner",
56
+ "type": {
57
+ "displayName": [
58
+ "Option"
59
+ ],
60
+ "type": 11
61
+ }
62
+ }
63
+ ],
64
+ "default": false,
65
+ "docs": [],
66
+ "label": "new",
67
+ "payable": false,
68
+ "returnType": {
69
+ "displayName": [
70
+ "ink_primitives",
71
+ "ConstructorResult"
72
+ ],
73
+ "type": 12
74
+ },
75
+ "selector": "0x9bae9d5e"
76
+ }
77
+ ],
78
+ "docs": [],
79
+ "environment": {
80
+ "accountId": {
81
+ "displayName": [
82
+ "AccountId"
83
+ ],
84
+ "type": 0
85
+ },
86
+ "balance": {
87
+ "displayName": [
88
+ "Balance"
89
+ ],
90
+ "type": 7
91
+ },
92
+ "blockNumber": {
93
+ "displayName": [
94
+ "BlockNumber"
95
+ ],
96
+ "type": 5
97
+ },
98
+ "chainExtension": {
99
+ "displayName": [
100
+ "ChainExtension"
101
+ ],
102
+ "type": 45
103
+ },
104
+ "hash": {
105
+ "displayName": [
106
+ "Hash"
107
+ ],
108
+ "type": 44
109
+ },
110
+ "maxEventTopics": 4,
111
+ "timestamp": {
112
+ "displayName": [
113
+ "Timestamp"
114
+ ],
115
+ "type": 6
116
+ }
117
+ },
118
+ "events": [
119
+ {
120
+ "args": [
121
+ {
122
+ "docs": [],
123
+ "indexed": true,
124
+ "label": "from",
125
+ "type": {
126
+ "displayName": [
127
+ "Option"
128
+ ],
129
+ "type": 11
130
+ }
131
+ },
132
+ {
133
+ "docs": [],
134
+ "indexed": true,
135
+ "label": "to",
136
+ "type": {
137
+ "displayName": [
138
+ "Option"
139
+ ],
140
+ "type": 11
141
+ }
142
+ },
143
+ {
144
+ "docs": [],
145
+ "indexed": true,
146
+ "label": "id",
147
+ "type": {
148
+ "displayName": [
149
+ "Id"
150
+ ],
151
+ "type": 10
152
+ }
153
+ }
154
+ ],
155
+ "docs": [
156
+ "Event emitted when a token transfer occurs."
157
+ ],
158
+ "label": "Transfer"
159
+ },
160
+ {
161
+ "args": [
162
+ {
163
+ "docs": [],
164
+ "indexed": true,
165
+ "label": "from",
166
+ "type": {
167
+ "displayName": [
168
+ "AccountId"
169
+ ],
170
+ "type": 0
171
+ }
172
+ },
173
+ {
174
+ "docs": [],
175
+ "indexed": true,
176
+ "label": "to",
177
+ "type": {
178
+ "displayName": [
179
+ "AccountId"
180
+ ],
181
+ "type": 0
182
+ }
183
+ },
184
+ {
185
+ "docs": [],
186
+ "indexed": true,
187
+ "label": "id",
188
+ "type": {
189
+ "displayName": [
190
+ "Option"
191
+ ],
192
+ "type": 18
193
+ }
194
+ },
195
+ {
196
+ "docs": [],
197
+ "indexed": false,
198
+ "label": "approved",
199
+ "type": {
200
+ "displayName": [
201
+ "bool"
202
+ ],
203
+ "type": 20
204
+ }
205
+ }
206
+ ],
207
+ "docs": [
208
+ "Event emitted when a token approve occurs."
209
+ ],
210
+ "label": "Approval"
211
+ }
212
+ ],
213
+ "lang_error": {
214
+ "displayName": [
215
+ "ink",
216
+ "LangError"
217
+ ],
218
+ "type": 13
219
+ },
220
+ "messages": [
221
+ {
222
+ "args": [
223
+ {
224
+ "label": "holder",
225
+ "type": {
226
+ "displayName": [
227
+ "AccountId"
228
+ ],
229
+ "type": 0
230
+ }
231
+ }
232
+ ],
233
+ "default": false,
234
+ "docs": [],
235
+ "label": "total_balance",
236
+ "mutates": false,
237
+ "payable": false,
238
+ "returnType": {
239
+ "displayName": [
240
+ "ink",
241
+ "MessageResult"
242
+ ],
243
+ "type": 14
244
+ },
245
+ "selector": "0xf3361760"
246
+ },
247
+ {
248
+ "args": [
249
+ {
250
+ "label": "code_hash",
251
+ "type": {
252
+ "displayName": [],
253
+ "type": 1
254
+ }
255
+ }
256
+ ],
257
+ "default": false,
258
+ "docs": [
259
+ " Modifies the code which is used to execute calls to this contract address (`AccountId`).",
260
+ "",
261
+ " We use this to upgrade the contract logic. We don't do any authorization here, any caller",
262
+ " can execute this method. In a production contract you would do some authorization here."
263
+ ],
264
+ "label": "set_code",
265
+ "mutates": true,
266
+ "payable": false,
267
+ "returnType": {
268
+ "displayName": [
269
+ "ink",
270
+ "MessageResult"
271
+ ],
272
+ "type": 12
273
+ },
274
+ "selector": "0x694fb50f"
275
+ },
276
+ {
277
+ "args": [],
278
+ "default": false,
279
+ "docs": [
280
+ " Returns the collection `Id` of the NFT token.",
281
+ "",
282
+ " This can represents the relationship between tokens/contracts/pallets."
283
+ ],
284
+ "label": "PSP34::collection_id",
285
+ "mutates": false,
286
+ "payable": false,
287
+ "returnType": {
288
+ "displayName": [
289
+ "ink",
290
+ "MessageResult"
291
+ ],
292
+ "type": 15
293
+ },
294
+ "selector": "0xffa27a5f"
295
+ },
296
+ {
297
+ "args": [],
298
+ "default": false,
299
+ "docs": [
300
+ " Returns current NFT total supply."
301
+ ],
302
+ "label": "PSP34::total_supply",
303
+ "mutates": false,
304
+ "payable": false,
305
+ "returnType": {
306
+ "displayName": [
307
+ "ink",
308
+ "MessageResult"
309
+ ],
310
+ "type": 16
311
+ },
312
+ "selector": "0x628413fe"
313
+ },
314
+ {
315
+ "args": [
316
+ {
317
+ "label": "id",
318
+ "type": {
319
+ "displayName": [
320
+ "psp34_external",
321
+ "OwnerOfInput1"
322
+ ],
323
+ "type": 10
324
+ }
325
+ }
326
+ ],
327
+ "default": false,
328
+ "docs": [
329
+ " Returns the owner of the token if any."
330
+ ],
331
+ "label": "PSP34::owner_of",
332
+ "mutates": false,
333
+ "payable": false,
334
+ "returnType": {
335
+ "displayName": [
336
+ "ink",
337
+ "MessageResult"
338
+ ],
339
+ "type": 17
340
+ },
341
+ "selector": "0x1168624d"
342
+ },
343
+ {
344
+ "args": [
345
+ {
346
+ "label": "owner",
347
+ "type": {
348
+ "displayName": [
349
+ "psp34_external",
350
+ "AllowanceInput1"
351
+ ],
352
+ "type": 0
353
+ }
354
+ },
355
+ {
356
+ "label": "operator",
357
+ "type": {
358
+ "displayName": [
359
+ "psp34_external",
360
+ "AllowanceInput2"
361
+ ],
362
+ "type": 0
363
+ }
364
+ },
365
+ {
366
+ "label": "id",
367
+ "type": {
368
+ "displayName": [
369
+ "psp34_external",
370
+ "AllowanceInput3"
371
+ ],
372
+ "type": 18
373
+ }
374
+ }
375
+ ],
376
+ "default": false,
377
+ "docs": [
378
+ " Returns `true` if the operator is approved by the owner to withdraw `id` token.",
379
+ " If `id` is `None`, returns `true` if the operator is approved to withdraw all owner's tokens."
380
+ ],
381
+ "label": "PSP34::allowance",
382
+ "mutates": false,
383
+ "payable": false,
384
+ "returnType": {
385
+ "displayName": [
386
+ "ink",
387
+ "MessageResult"
388
+ ],
389
+ "type": 19
390
+ },
391
+ "selector": "0x4790f55a"
392
+ },
393
+ {
394
+ "args": [
395
+ {
396
+ "label": "operator",
397
+ "type": {
398
+ "displayName": [
399
+ "psp34_external",
400
+ "ApproveInput1"
401
+ ],
402
+ "type": 0
403
+ }
404
+ },
405
+ {
406
+ "label": "id",
407
+ "type": {
408
+ "displayName": [
409
+ "psp34_external",
410
+ "ApproveInput2"
411
+ ],
412
+ "type": 18
413
+ }
414
+ },
415
+ {
416
+ "label": "approved",
417
+ "type": {
418
+ "displayName": [
419
+ "psp34_external",
420
+ "ApproveInput3"
421
+ ],
422
+ "type": 20
423
+ }
424
+ }
425
+ ],
426
+ "default": false,
427
+ "docs": [
428
+ " Approves `operator` to withdraw the `id` token from the caller's account.",
429
+ " If `id` is `None` approves or disapproves the operator for all tokens of the caller.",
430
+ "",
431
+ " On success a `Approval` event is emitted.",
432
+ "",
433
+ " # Errors",
434
+ "",
435
+ " Returns `SelfApprove` error if it is self approve.",
436
+ "",
437
+ " Returns `NotApproved` error if caller is not owner of `id`."
438
+ ],
439
+ "label": "PSP34::approve",
440
+ "mutates": true,
441
+ "payable": false,
442
+ "returnType": {
443
+ "displayName": [
444
+ "ink",
445
+ "MessageResult"
446
+ ],
447
+ "type": 21
448
+ },
449
+ "selector": "0x1932a8b0"
450
+ },
451
+ {
452
+ "args": [
453
+ {
454
+ "label": "owner",
455
+ "type": {
456
+ "displayName": [
457
+ "psp34_external",
458
+ "BalanceOfInput1"
459
+ ],
460
+ "type": 0
461
+ }
462
+ }
463
+ ],
464
+ "default": false,
465
+ "docs": [
466
+ " Returns the balance of the owner.",
467
+ "",
468
+ " This represents the amount of unique tokens the owner has."
469
+ ],
470
+ "label": "PSP34::balance_of",
471
+ "mutates": false,
472
+ "payable": false,
473
+ "returnType": {
474
+ "displayName": [
475
+ "ink",
476
+ "MessageResult"
477
+ ],
478
+ "type": 24
479
+ },
480
+ "selector": "0xcde7e55f"
481
+ },
482
+ {
483
+ "args": [
484
+ {
485
+ "label": "to",
486
+ "type": {
487
+ "displayName": [
488
+ "psp34_external",
489
+ "TransferInput1"
490
+ ],
491
+ "type": 0
492
+ }
493
+ },
494
+ {
495
+ "label": "id",
496
+ "type": {
497
+ "displayName": [
498
+ "psp34_external",
499
+ "TransferInput2"
500
+ ],
501
+ "type": 10
502
+ }
503
+ },
504
+ {
505
+ "label": "data",
506
+ "type": {
507
+ "displayName": [
508
+ "psp34_external",
509
+ "TransferInput3"
510
+ ],
511
+ "type": 8
512
+ }
513
+ }
514
+ ],
515
+ "default": false,
516
+ "docs": [
517
+ " Transfer approved or owned token from caller.",
518
+ "",
519
+ " On success a `Transfer` event is emitted.",
520
+ "",
521
+ " # Errors",
522
+ "",
523
+ " Returns `TokenNotExists` error if `id` does not exist.",
524
+ "",
525
+ " Returns `NotApproved` error if `from` doesn't have allowance for transferring.",
526
+ "",
527
+ " Returns `SafeTransferCheckFailed` error if `to` doesn't accept transfer."
528
+ ],
529
+ "label": "PSP34::transfer",
530
+ "mutates": true,
531
+ "payable": false,
532
+ "returnType": {
533
+ "displayName": [
534
+ "ink",
535
+ "MessageResult"
536
+ ],
537
+ "type": 21
538
+ },
539
+ "selector": "0x3128d61b"
540
+ },
541
+ {
542
+ "args": [
543
+ {
544
+ "label": "account",
545
+ "type": {
546
+ "displayName": [
547
+ "psp34burnable_external",
548
+ "BurnInput1"
549
+ ],
550
+ "type": 0
551
+ }
552
+ },
553
+ {
554
+ "label": "id",
555
+ "type": {
556
+ "displayName": [
557
+ "psp34burnable_external",
558
+ "BurnInput2"
559
+ ],
560
+ "type": 10
561
+ }
562
+ }
563
+ ],
564
+ "default": false,
565
+ "docs": [
566
+ " Destroys token with id equal to `id` from `account`",
567
+ "",
568
+ " Caller must be approved to transfer tokens from `account`",
569
+ " or to transfer token with `id`"
570
+ ],
571
+ "label": "PSP34Burnable::burn",
572
+ "mutates": true,
573
+ "payable": false,
574
+ "returnType": {
575
+ "displayName": [
576
+ "ink",
577
+ "MessageResult"
578
+ ],
579
+ "type": 21
580
+ },
581
+ "selector": "0x63c9877a"
582
+ },
583
+ {
584
+ "args": [
585
+ {
586
+ "label": "index",
587
+ "type": {
588
+ "displayName": [
589
+ "psp34enumerable_external",
590
+ "TokenByIndexInput1"
591
+ ],
592
+ "type": 7
593
+ }
594
+ }
595
+ ],
596
+ "default": false,
597
+ "docs": [
598
+ " Returns a token `Id` at a given `index` of all the tokens stored by the contract.",
599
+ " Use along with `total_supply` to enumerate all tokens.",
600
+ "",
601
+ " The start index is zero."
602
+ ],
603
+ "label": "PSP34Enumerable::token_by_index",
604
+ "mutates": false,
605
+ "payable": false,
606
+ "returnType": {
607
+ "displayName": [
608
+ "ink",
609
+ "MessageResult"
610
+ ],
611
+ "type": 25
612
+ },
613
+ "selector": "0xcd0340d0"
614
+ },
615
+ {
616
+ "args": [
617
+ {
618
+ "label": "owner",
619
+ "type": {
620
+ "displayName": [
621
+ "psp34enumerable_external",
622
+ "OwnersTokenByIndexInput1"
623
+ ],
624
+ "type": 0
625
+ }
626
+ },
627
+ {
628
+ "label": "index",
629
+ "type": {
630
+ "displayName": [
631
+ "psp34enumerable_external",
632
+ "OwnersTokenByIndexInput2"
633
+ ],
634
+ "type": 7
635
+ }
636
+ }
637
+ ],
638
+ "default": false,
639
+ "docs": [
640
+ " Returns a token `Id` owned by `owner` at a given `index` of its token list.",
641
+ " Use along with `balance_of` to enumerate all of ``owner``'s tokens.",
642
+ "",
643
+ " The start index is zero."
644
+ ],
645
+ "label": "PSP34Enumerable::owners_token_by_index",
646
+ "mutates": false,
647
+ "payable": false,
648
+ "returnType": {
649
+ "displayName": [
650
+ "ink",
651
+ "MessageResult"
652
+ ],
653
+ "type": 25
654
+ },
655
+ "selector": "0x3bcfb511"
656
+ },
657
+ {
658
+ "args": [
659
+ {
660
+ "label": "new_owner",
661
+ "type": {
662
+ "displayName": [
663
+ "ownable_external",
664
+ "TransferOwnershipInput1"
665
+ ],
666
+ "type": 0
667
+ }
668
+ }
669
+ ],
670
+ "default": false,
671
+ "docs": [
672
+ " Transfers ownership of the contract to a `new_owner`.",
673
+ " Can only be called by the current owner.",
674
+ "",
675
+ " On success a `OwnershipTransferred` event is emitted.",
676
+ "",
677
+ " # Errors",
678
+ "",
679
+ " Panics with `CallerIsNotOwner` error if caller is not owner.",
680
+ "",
681
+ " Panics with `NewOwnerIsZero` error if new owner's address is zero."
682
+ ],
683
+ "label": "Ownable::transfer_ownership",
684
+ "mutates": true,
685
+ "payable": false,
686
+ "returnType": {
687
+ "displayName": [
688
+ "ink",
689
+ "MessageResult"
690
+ ],
691
+ "type": 27
692
+ },
693
+ "selector": "0x11f43efd"
694
+ },
695
+ {
696
+ "args": [],
697
+ "default": false,
698
+ "docs": [
699
+ " Returns the address of the current owner."
700
+ ],
701
+ "label": "Ownable::owner",
702
+ "mutates": false,
703
+ "payable": false,
704
+ "returnType": {
705
+ "displayName": [
706
+ "ink",
707
+ "MessageResult"
708
+ ],
709
+ "type": 30
710
+ },
711
+ "selector": "0x4fa43c8c"
712
+ },
713
+ {
714
+ "args": [],
715
+ "default": false,
716
+ "docs": [
717
+ " Leaves the contract without owner. It will not be possible to call",
718
+ " owner's functions anymore. Can only be called by the current owner.",
719
+ "",
720
+ " NOTE: Renouncing ownership will leave the contract without an owner,",
721
+ " thereby removing any functionality that is only available to the owner.",
722
+ "",
723
+ " On success a `OwnershipTransferred` event is emitted.",
724
+ "",
725
+ " # Errors",
726
+ "",
727
+ " Panics with `CallerIsNotOwner` error if caller is not owner"
728
+ ],
729
+ "label": "Ownable::renounce_ownership",
730
+ "mutates": true,
731
+ "payable": false,
732
+ "returnType": {
733
+ "displayName": [
734
+ "ink",
735
+ "MessageResult"
736
+ ],
737
+ "type": 27
738
+ },
739
+ "selector": "0x5e228753"
740
+ },
741
+ {
742
+ "args": [
743
+ {
744
+ "label": "id",
745
+ "type": {
746
+ "displayName": [
747
+ "psp34metadata_external",
748
+ "GetAttributeInput1"
749
+ ],
750
+ "type": 10
751
+ }
752
+ },
753
+ {
754
+ "label": "key",
755
+ "type": {
756
+ "displayName": [
757
+ "psp34metadata_external",
758
+ "GetAttributeInput2"
759
+ ],
760
+ "type": 8
761
+ }
762
+ }
763
+ ],
764
+ "default": false,
765
+ "docs": [
766
+ " Returns the attribute of `id` for the given `key`.",
767
+ "",
768
+ " If `id` is a collection id of the token, it returns attributes for collection."
769
+ ],
770
+ "label": "PSP34Metadata::get_attribute",
771
+ "mutates": false,
772
+ "payable": false,
773
+ "returnType": {
774
+ "displayName": [
775
+ "ink",
776
+ "MessageResult"
777
+ ],
778
+ "type": 31
779
+ },
780
+ "selector": "0xf19d48d1"
781
+ },
782
+ {
783
+ "args": [
784
+ {
785
+ "label": "token_id",
786
+ "type": {
787
+ "displayName": [
788
+ "pinkmint_external",
789
+ "TokenUriInput1"
790
+ ],
791
+ "type": 6
792
+ }
793
+ }
794
+ ],
795
+ "default": false,
796
+ "docs": [
797
+ " Get URI for the token Id."
798
+ ],
799
+ "label": "PinkMint::token_uri",
800
+ "mutates": false,
801
+ "payable": false,
802
+ "returnType": {
803
+ "displayName": [
804
+ "ink",
805
+ "MessageResult"
806
+ ],
807
+ "type": 33
808
+ },
809
+ "selector": "0x5b903a36"
810
+ },
811
+ {
812
+ "args": [
813
+ {
814
+ "label": "to",
815
+ "type": {
816
+ "displayName": [
817
+ "pinkmint_external",
818
+ "MintInput1"
819
+ ],
820
+ "type": 0
821
+ }
822
+ },
823
+ {
824
+ "label": "metadata",
825
+ "type": {
826
+ "displayName": [
827
+ "pinkmint_external",
828
+ "MintInput2"
829
+ ],
830
+ "type": 8
831
+ }
832
+ }
833
+ ],
834
+ "default": false,
835
+ "docs": [
836
+ " Mint one or more tokens."
837
+ ],
838
+ "label": "PinkMint::mint",
839
+ "mutates": true,
840
+ "payable": false,
841
+ "returnType": {
842
+ "displayName": [
843
+ "ink",
844
+ "MessageResult"
845
+ ],
846
+ "type": 38
847
+ },
848
+ "selector": "0x5efd98d7"
849
+ },
850
+ {
851
+ "args": [
852
+ {
853
+ "label": "max_supply",
854
+ "type": {
855
+ "displayName": [
856
+ "pinkmint_external",
857
+ "SetMaxSupplyInput1"
858
+ ],
859
+ "type": 40
860
+ }
861
+ }
862
+ ],
863
+ "default": false,
864
+ "docs": [
865
+ " Set max supply of tokens."
866
+ ],
867
+ "label": "PinkMint::set_max_supply",
868
+ "mutates": true,
869
+ "payable": false,
870
+ "returnType": {
871
+ "displayName": [
872
+ "ink",
873
+ "MessageResult"
874
+ ],
875
+ "type": 41
876
+ },
877
+ "selector": "0x4f50f3ce"
878
+ },
879
+ {
880
+ "args": [],
881
+ "default": false,
882
+ "docs": [
883
+ " Get max supply of tokens."
884
+ ],
885
+ "label": "PinkMint::max_supply",
886
+ "mutates": false,
887
+ "payable": false,
888
+ "returnType": {
889
+ "displayName": [
890
+ "ink",
891
+ "MessageResult"
892
+ ],
893
+ "type": 43
894
+ },
895
+ "selector": "0x667a6c97"
896
+ }
897
+ ]
898
+ },
899
+ "storage": {
900
+ "root": {
901
+ "layout": {
902
+ "struct": {
903
+ "fields": [
904
+ {
905
+ "layout": {
906
+ "struct": {
907
+ "fields": [
908
+ {
909
+ "layout": {
910
+ "root": {
911
+ "layout": {
912
+ "leaf": {
913
+ "key": "0x1cc80634",
914
+ "ty": 0
915
+ }
916
+ },
917
+ "root_key": "0x1cc80634"
918
+ }
919
+ },
920
+ "name": "token_owner"
921
+ },
922
+ {
923
+ "layout": {
924
+ "root": {
925
+ "layout": {
926
+ "leaf": {
927
+ "key": "0x7e3fae6b",
928
+ "ty": 3
929
+ }
930
+ },
931
+ "root_key": "0x7e3fae6b"
932
+ }
933
+ },
934
+ "name": "operator_approvals"
935
+ },
936
+ {
937
+ "layout": {
938
+ "struct": {
939
+ "fields": [
940
+ {
941
+ "layout": {
942
+ "root": {
943
+ "layout": {
944
+ "enum": {
945
+ "dispatchKey": "0xca32a240",
946
+ "name": "Id",
947
+ "variants": {
948
+ "0": {
949
+ "fields": [
950
+ {
951
+ "layout": {
952
+ "leaf": {
953
+ "key": "0xca32a240",
954
+ "ty": 2
955
+ }
956
+ },
957
+ "name": "0"
958
+ }
959
+ ],
960
+ "name": "U8"
961
+ },
962
+ "1": {
963
+ "fields": [
964
+ {
965
+ "layout": {
966
+ "leaf": {
967
+ "key": "0xca32a240",
968
+ "ty": 4
969
+ }
970
+ },
971
+ "name": "0"
972
+ }
973
+ ],
974
+ "name": "U16"
975
+ },
976
+ "2": {
977
+ "fields": [
978
+ {
979
+ "layout": {
980
+ "leaf": {
981
+ "key": "0xca32a240",
982
+ "ty": 5
983
+ }
984
+ },
985
+ "name": "0"
986
+ }
987
+ ],
988
+ "name": "U32"
989
+ },
990
+ "3": {
991
+ "fields": [
992
+ {
993
+ "layout": {
994
+ "leaf": {
995
+ "key": "0xca32a240",
996
+ "ty": 6
997
+ }
998
+ },
999
+ "name": "0"
1000
+ }
1001
+ ],
1002
+ "name": "U64"
1003
+ },
1004
+ "4": {
1005
+ "fields": [
1006
+ {
1007
+ "layout": {
1008
+ "leaf": {
1009
+ "key": "0xca32a240",
1010
+ "ty": 7
1011
+ }
1012
+ },
1013
+ "name": "0"
1014
+ }
1015
+ ],
1016
+ "name": "U128"
1017
+ },
1018
+ "5": {
1019
+ "fields": [
1020
+ {
1021
+ "layout": {
1022
+ "leaf": {
1023
+ "key": "0xca32a240",
1024
+ "ty": 8
1025
+ }
1026
+ },
1027
+ "name": "0"
1028
+ }
1029
+ ],
1030
+ "name": "Bytes"
1031
+ }
1032
+ }
1033
+ }
1034
+ },
1035
+ "root_key": "0xca32a240"
1036
+ }
1037
+ },
1038
+ "name": "enumerable"
1039
+ },
1040
+ {
1041
+ "layout": {
1042
+ "enum": {
1043
+ "dispatchKey": "0x00000000",
1044
+ "name": "Option",
1045
+ "variants": {
1046
+ "0": {
1047
+ "fields": [],
1048
+ "name": "None"
1049
+ },
1050
+ "1": {
1051
+ "fields": [
1052
+ {
1053
+ "layout": {
1054
+ "leaf": {
1055
+ "key": "0x00000000",
1056
+ "ty": 3
1057
+ }
1058
+ },
1059
+ "name": "0"
1060
+ }
1061
+ ],
1062
+ "name": "Some"
1063
+ }
1064
+ }
1065
+ }
1066
+ },
1067
+ "name": "_reserved"
1068
+ }
1069
+ ],
1070
+ "name": "Balances"
1071
+ }
1072
+ },
1073
+ "name": "balances"
1074
+ },
1075
+ {
1076
+ "layout": {
1077
+ "enum": {
1078
+ "dispatchKey": "0x00000000",
1079
+ "name": "Option",
1080
+ "variants": {
1081
+ "0": {
1082
+ "fields": [],
1083
+ "name": "None"
1084
+ },
1085
+ "1": {
1086
+ "fields": [
1087
+ {
1088
+ "layout": {
1089
+ "leaf": {
1090
+ "key": "0x00000000",
1091
+ "ty": 3
1092
+ }
1093
+ },
1094
+ "name": "0"
1095
+ }
1096
+ ],
1097
+ "name": "Some"
1098
+ }
1099
+ }
1100
+ }
1101
+ },
1102
+ "name": "_reserved"
1103
+ }
1104
+ ],
1105
+ "name": "Data"
1106
+ }
1107
+ },
1108
+ "name": "psp34"
1109
+ },
1110
+ {
1111
+ "layout": {
1112
+ "struct": {
1113
+ "fields": [
1114
+ {
1115
+ "layout": {
1116
+ "leaf": {
1117
+ "key": "0x00000000",
1118
+ "ty": 0
1119
+ }
1120
+ },
1121
+ "name": "owner"
1122
+ },
1123
+ {
1124
+ "layout": {
1125
+ "enum": {
1126
+ "dispatchKey": "0x00000000",
1127
+ "name": "Option",
1128
+ "variants": {
1129
+ "0": {
1130
+ "fields": [],
1131
+ "name": "None"
1132
+ },
1133
+ "1": {
1134
+ "fields": [
1135
+ {
1136
+ "layout": {
1137
+ "leaf": {
1138
+ "key": "0x00000000",
1139
+ "ty": 3
1140
+ }
1141
+ },
1142
+ "name": "0"
1143
+ }
1144
+ ],
1145
+ "name": "Some"
1146
+ }
1147
+ }
1148
+ }
1149
+ },
1150
+ "name": "_reserved"
1151
+ }
1152
+ ],
1153
+ "name": "Data"
1154
+ }
1155
+ },
1156
+ "name": "ownable"
1157
+ },
1158
+ {
1159
+ "layout": {
1160
+ "struct": {
1161
+ "fields": [
1162
+ {
1163
+ "layout": {
1164
+ "root": {
1165
+ "layout": {
1166
+ "leaf": {
1167
+ "key": "0x9b2d2382",
1168
+ "ty": 8
1169
+ }
1170
+ },
1171
+ "root_key": "0x9b2d2382"
1172
+ }
1173
+ },
1174
+ "name": "attributes"
1175
+ },
1176
+ {
1177
+ "layout": {
1178
+ "enum": {
1179
+ "dispatchKey": "0x00000000",
1180
+ "name": "Option",
1181
+ "variants": {
1182
+ "0": {
1183
+ "fields": [],
1184
+ "name": "None"
1185
+ },
1186
+ "1": {
1187
+ "fields": [
1188
+ {
1189
+ "layout": {
1190
+ "leaf": {
1191
+ "key": "0x00000000",
1192
+ "ty": 3
1193
+ }
1194
+ },
1195
+ "name": "0"
1196
+ }
1197
+ ],
1198
+ "name": "Some"
1199
+ }
1200
+ }
1201
+ }
1202
+ },
1203
+ "name": "_reserved"
1204
+ }
1205
+ ],
1206
+ "name": "Data"
1207
+ }
1208
+ },
1209
+ "name": "metadata"
1210
+ },
1211
+ {
1212
+ "layout": {
1213
+ "struct": {
1214
+ "fields": [
1215
+ {
1216
+ "layout": {
1217
+ "leaf": {
1218
+ "key": "0x00000000",
1219
+ "ty": 6
1220
+ }
1221
+ },
1222
+ "name": "last_token_id"
1223
+ },
1224
+ {
1225
+ "layout": {
1226
+ "enum": {
1227
+ "dispatchKey": "0x00000000",
1228
+ "name": "Option",
1229
+ "variants": {
1230
+ "0": {
1231
+ "fields": [],
1232
+ "name": "None"
1233
+ },
1234
+ "1": {
1235
+ "fields": [
1236
+ {
1237
+ "layout": {
1238
+ "leaf": {
1239
+ "key": "0x00000000",
1240
+ "ty": 6
1241
+ }
1242
+ },
1243
+ "name": "0"
1244
+ }
1245
+ ],
1246
+ "name": "Some"
1247
+ }
1248
+ }
1249
+ }
1250
+ },
1251
+ "name": "max_supply"
1252
+ },
1253
+ {
1254
+ "layout": {
1255
+ "leaf": {
1256
+ "key": "0x00000000",
1257
+ "ty": 7
1258
+ }
1259
+ },
1260
+ "name": "price_per_mint"
1261
+ },
1262
+ {
1263
+ "layout": {
1264
+ "root": {
1265
+ "layout": {
1266
+ "leaf": {
1267
+ "key": "0x63eb77ea",
1268
+ "ty": 8
1269
+ }
1270
+ },
1271
+ "root_key": "0x63eb77ea"
1272
+ }
1273
+ },
1274
+ "name": "nft_metadata"
1275
+ }
1276
+ ],
1277
+ "name": "MintingData"
1278
+ }
1279
+ },
1280
+ "name": "pinkmint"
1281
+ },
1282
+ {
1283
+ "layout": {
1284
+ "root": {
1285
+ "layout": {
1286
+ "leaf": {
1287
+ "key": "0x5ce6c6c4",
1288
+ "ty": 9
1289
+ }
1290
+ },
1291
+ "root_key": "0x5ce6c6c4"
1292
+ }
1293
+ },
1294
+ "name": "holders"
1295
+ }
1296
+ ],
1297
+ "name": "PinkPsp34"
1298
+ }
1299
+ },
1300
+ "root_key": "0x00000000"
1301
+ }
1302
+ },
1303
+ "types": [
1304
+ {
1305
+ "id": 0,
1306
+ "type": {
1307
+ "def": {
1308
+ "composite": {
1309
+ "fields": [
1310
+ {
1311
+ "type": 1,
1312
+ "typeName": "[u8; 32]"
1313
+ }
1314
+ ]
1315
+ }
1316
+ },
1317
+ "path": [
1318
+ "ink_primitives",
1319
+ "types",
1320
+ "AccountId"
1321
+ ]
1322
+ }
1323
+ },
1324
+ {
1325
+ "id": 1,
1326
+ "type": {
1327
+ "def": {
1328
+ "array": {
1329
+ "len": 32,
1330
+ "type": 2
1331
+ }
1332
+ }
1333
+ }
1334
+ },
1335
+ {
1336
+ "id": 2,
1337
+ "type": {
1338
+ "def": {
1339
+ "primitive": "u8"
1340
+ }
1341
+ }
1342
+ },
1343
+ {
1344
+ "id": 3,
1345
+ "type": {
1346
+ "def": {
1347
+ "tuple": []
1348
+ }
1349
+ }
1350
+ },
1351
+ {
1352
+ "id": 4,
1353
+ "type": {
1354
+ "def": {
1355
+ "primitive": "u16"
1356
+ }
1357
+ }
1358
+ },
1359
+ {
1360
+ "id": 5,
1361
+ "type": {
1362
+ "def": {
1363
+ "primitive": "u32"
1364
+ }
1365
+ }
1366
+ },
1367
+ {
1368
+ "id": 6,
1369
+ "type": {
1370
+ "def": {
1371
+ "primitive": "u64"
1372
+ }
1373
+ }
1374
+ },
1375
+ {
1376
+ "id": 7,
1377
+ "type": {
1378
+ "def": {
1379
+ "primitive": "u128"
1380
+ }
1381
+ }
1382
+ },
1383
+ {
1384
+ "id": 8,
1385
+ "type": {
1386
+ "def": {
1387
+ "sequence": {
1388
+ "type": 2
1389
+ }
1390
+ }
1391
+ }
1392
+ },
1393
+ {
1394
+ "id": 9,
1395
+ "type": {
1396
+ "def": {
1397
+ "sequence": {
1398
+ "type": 10
1399
+ }
1400
+ }
1401
+ }
1402
+ },
1403
+ {
1404
+ "id": 10,
1405
+ "type": {
1406
+ "def": {
1407
+ "variant": {
1408
+ "variants": [
1409
+ {
1410
+ "fields": [
1411
+ {
1412
+ "type": 2,
1413
+ "typeName": "u8"
1414
+ }
1415
+ ],
1416
+ "index": 0,
1417
+ "name": "U8"
1418
+ },
1419
+ {
1420
+ "fields": [
1421
+ {
1422
+ "type": 4,
1423
+ "typeName": "u16"
1424
+ }
1425
+ ],
1426
+ "index": 1,
1427
+ "name": "U16"
1428
+ },
1429
+ {
1430
+ "fields": [
1431
+ {
1432
+ "type": 5,
1433
+ "typeName": "u32"
1434
+ }
1435
+ ],
1436
+ "index": 2,
1437
+ "name": "U32"
1438
+ },
1439
+ {
1440
+ "fields": [
1441
+ {
1442
+ "type": 6,
1443
+ "typeName": "u64"
1444
+ }
1445
+ ],
1446
+ "index": 3,
1447
+ "name": "U64"
1448
+ },
1449
+ {
1450
+ "fields": [
1451
+ {
1452
+ "type": 7,
1453
+ "typeName": "u128"
1454
+ }
1455
+ ],
1456
+ "index": 4,
1457
+ "name": "U128"
1458
+ },
1459
+ {
1460
+ "fields": [
1461
+ {
1462
+ "type": 8,
1463
+ "typeName": "Vec<u8>"
1464
+ }
1465
+ ],
1466
+ "index": 5,
1467
+ "name": "Bytes"
1468
+ }
1469
+ ]
1470
+ }
1471
+ },
1472
+ "path": [
1473
+ "openbrush_contracts",
1474
+ "traits",
1475
+ "types",
1476
+ "Id"
1477
+ ]
1478
+ }
1479
+ },
1480
+ {
1481
+ "id": 11,
1482
+ "type": {
1483
+ "def": {
1484
+ "variant": {
1485
+ "variants": [
1486
+ {
1487
+ "index": 0,
1488
+ "name": "None"
1489
+ },
1490
+ {
1491
+ "fields": [
1492
+ {
1493
+ "type": 0
1494
+ }
1495
+ ],
1496
+ "index": 1,
1497
+ "name": "Some"
1498
+ }
1499
+ ]
1500
+ }
1501
+ },
1502
+ "params": [
1503
+ {
1504
+ "name": "T",
1505
+ "type": 0
1506
+ }
1507
+ ],
1508
+ "path": [
1509
+ "Option"
1510
+ ]
1511
+ }
1512
+ },
1513
+ {
1514
+ "id": 12,
1515
+ "type": {
1516
+ "def": {
1517
+ "variant": {
1518
+ "variants": [
1519
+ {
1520
+ "fields": [
1521
+ {
1522
+ "type": 3
1523
+ }
1524
+ ],
1525
+ "index": 0,
1526
+ "name": "Ok"
1527
+ },
1528
+ {
1529
+ "fields": [
1530
+ {
1531
+ "type": 13
1532
+ }
1533
+ ],
1534
+ "index": 1,
1535
+ "name": "Err"
1536
+ }
1537
+ ]
1538
+ }
1539
+ },
1540
+ "params": [
1541
+ {
1542
+ "name": "T",
1543
+ "type": 3
1544
+ },
1545
+ {
1546
+ "name": "E",
1547
+ "type": 13
1548
+ }
1549
+ ],
1550
+ "path": [
1551
+ "Result"
1552
+ ]
1553
+ }
1554
+ },
1555
+ {
1556
+ "id": 13,
1557
+ "type": {
1558
+ "def": {
1559
+ "variant": {
1560
+ "variants": [
1561
+ {
1562
+ "index": 1,
1563
+ "name": "CouldNotReadInput"
1564
+ }
1565
+ ]
1566
+ }
1567
+ },
1568
+ "path": [
1569
+ "ink_primitives",
1570
+ "LangError"
1571
+ ]
1572
+ }
1573
+ },
1574
+ {
1575
+ "id": 14,
1576
+ "type": {
1577
+ "def": {
1578
+ "variant": {
1579
+ "variants": [
1580
+ {
1581
+ "fields": [
1582
+ {
1583
+ "type": 9
1584
+ }
1585
+ ],
1586
+ "index": 0,
1587
+ "name": "Ok"
1588
+ },
1589
+ {
1590
+ "fields": [
1591
+ {
1592
+ "type": 13
1593
+ }
1594
+ ],
1595
+ "index": 1,
1596
+ "name": "Err"
1597
+ }
1598
+ ]
1599
+ }
1600
+ },
1601
+ "params": [
1602
+ {
1603
+ "name": "T",
1604
+ "type": 9
1605
+ },
1606
+ {
1607
+ "name": "E",
1608
+ "type": 13
1609
+ }
1610
+ ],
1611
+ "path": [
1612
+ "Result"
1613
+ ]
1614
+ }
1615
+ },
1616
+ {
1617
+ "id": 15,
1618
+ "type": {
1619
+ "def": {
1620
+ "variant": {
1621
+ "variants": [
1622
+ {
1623
+ "fields": [
1624
+ {
1625
+ "type": 10
1626
+ }
1627
+ ],
1628
+ "index": 0,
1629
+ "name": "Ok"
1630
+ },
1631
+ {
1632
+ "fields": [
1633
+ {
1634
+ "type": 13
1635
+ }
1636
+ ],
1637
+ "index": 1,
1638
+ "name": "Err"
1639
+ }
1640
+ ]
1641
+ }
1642
+ },
1643
+ "params": [
1644
+ {
1645
+ "name": "T",
1646
+ "type": 10
1647
+ },
1648
+ {
1649
+ "name": "E",
1650
+ "type": 13
1651
+ }
1652
+ ],
1653
+ "path": [
1654
+ "Result"
1655
+ ]
1656
+ }
1657
+ },
1658
+ {
1659
+ "id": 16,
1660
+ "type": {
1661
+ "def": {
1662
+ "variant": {
1663
+ "variants": [
1664
+ {
1665
+ "fields": [
1666
+ {
1667
+ "type": 7
1668
+ }
1669
+ ],
1670
+ "index": 0,
1671
+ "name": "Ok"
1672
+ },
1673
+ {
1674
+ "fields": [
1675
+ {
1676
+ "type": 13
1677
+ }
1678
+ ],
1679
+ "index": 1,
1680
+ "name": "Err"
1681
+ }
1682
+ ]
1683
+ }
1684
+ },
1685
+ "params": [
1686
+ {
1687
+ "name": "T",
1688
+ "type": 7
1689
+ },
1690
+ {
1691
+ "name": "E",
1692
+ "type": 13
1693
+ }
1694
+ ],
1695
+ "path": [
1696
+ "Result"
1697
+ ]
1698
+ }
1699
+ },
1700
+ {
1701
+ "id": 17,
1702
+ "type": {
1703
+ "def": {
1704
+ "variant": {
1705
+ "variants": [
1706
+ {
1707
+ "fields": [
1708
+ {
1709
+ "type": 11
1710
+ }
1711
+ ],
1712
+ "index": 0,
1713
+ "name": "Ok"
1714
+ },
1715
+ {
1716
+ "fields": [
1717
+ {
1718
+ "type": 13
1719
+ }
1720
+ ],
1721
+ "index": 1,
1722
+ "name": "Err"
1723
+ }
1724
+ ]
1725
+ }
1726
+ },
1727
+ "params": [
1728
+ {
1729
+ "name": "T",
1730
+ "type": 11
1731
+ },
1732
+ {
1733
+ "name": "E",
1734
+ "type": 13
1735
+ }
1736
+ ],
1737
+ "path": [
1738
+ "Result"
1739
+ ]
1740
+ }
1741
+ },
1742
+ {
1743
+ "id": 18,
1744
+ "type": {
1745
+ "def": {
1746
+ "variant": {
1747
+ "variants": [
1748
+ {
1749
+ "index": 0,
1750
+ "name": "None"
1751
+ },
1752
+ {
1753
+ "fields": [
1754
+ {
1755
+ "type": 10
1756
+ }
1757
+ ],
1758
+ "index": 1,
1759
+ "name": "Some"
1760
+ }
1761
+ ]
1762
+ }
1763
+ },
1764
+ "params": [
1765
+ {
1766
+ "name": "T",
1767
+ "type": 10
1768
+ }
1769
+ ],
1770
+ "path": [
1771
+ "Option"
1772
+ ]
1773
+ }
1774
+ },
1775
+ {
1776
+ "id": 19,
1777
+ "type": {
1778
+ "def": {
1779
+ "variant": {
1780
+ "variants": [
1781
+ {
1782
+ "fields": [
1783
+ {
1784
+ "type": 20
1785
+ }
1786
+ ],
1787
+ "index": 0,
1788
+ "name": "Ok"
1789
+ },
1790
+ {
1791
+ "fields": [
1792
+ {
1793
+ "type": 13
1794
+ }
1795
+ ],
1796
+ "index": 1,
1797
+ "name": "Err"
1798
+ }
1799
+ ]
1800
+ }
1801
+ },
1802
+ "params": [
1803
+ {
1804
+ "name": "T",
1805
+ "type": 20
1806
+ },
1807
+ {
1808
+ "name": "E",
1809
+ "type": 13
1810
+ }
1811
+ ],
1812
+ "path": [
1813
+ "Result"
1814
+ ]
1815
+ }
1816
+ },
1817
+ {
1818
+ "id": 20,
1819
+ "type": {
1820
+ "def": {
1821
+ "primitive": "bool"
1822
+ }
1823
+ }
1824
+ },
1825
+ {
1826
+ "id": 21,
1827
+ "type": {
1828
+ "def": {
1829
+ "variant": {
1830
+ "variants": [
1831
+ {
1832
+ "fields": [
1833
+ {
1834
+ "type": 22
1835
+ }
1836
+ ],
1837
+ "index": 0,
1838
+ "name": "Ok"
1839
+ },
1840
+ {
1841
+ "fields": [
1842
+ {
1843
+ "type": 13
1844
+ }
1845
+ ],
1846
+ "index": 1,
1847
+ "name": "Err"
1848
+ }
1849
+ ]
1850
+ }
1851
+ },
1852
+ "params": [
1853
+ {
1854
+ "name": "T",
1855
+ "type": 22
1856
+ },
1857
+ {
1858
+ "name": "E",
1859
+ "type": 13
1860
+ }
1861
+ ],
1862
+ "path": [
1863
+ "Result"
1864
+ ]
1865
+ }
1866
+ },
1867
+ {
1868
+ "id": 22,
1869
+ "type": {
1870
+ "def": {
1871
+ "variant": {
1872
+ "variants": [
1873
+ {
1874
+ "fields": [
1875
+ {
1876
+ "type": 3
1877
+ }
1878
+ ],
1879
+ "index": 0,
1880
+ "name": "Ok"
1881
+ },
1882
+ {
1883
+ "fields": [
1884
+ {
1885
+ "type": 23
1886
+ }
1887
+ ],
1888
+ "index": 1,
1889
+ "name": "Err"
1890
+ }
1891
+ ]
1892
+ }
1893
+ },
1894
+ "params": [
1895
+ {
1896
+ "name": "T",
1897
+ "type": 3
1898
+ },
1899
+ {
1900
+ "name": "E",
1901
+ "type": 23
1902
+ }
1903
+ ],
1904
+ "path": [
1905
+ "Result"
1906
+ ]
1907
+ }
1908
+ },
1909
+ {
1910
+ "id": 23,
1911
+ "type": {
1912
+ "def": {
1913
+ "variant": {
1914
+ "variants": [
1915
+ {
1916
+ "fields": [
1917
+ {
1918
+ "type": 8,
1919
+ "typeName": "String"
1920
+ }
1921
+ ],
1922
+ "index": 0,
1923
+ "name": "Custom"
1924
+ },
1925
+ {
1926
+ "index": 1,
1927
+ "name": "SelfApprove"
1928
+ },
1929
+ {
1930
+ "index": 2,
1931
+ "name": "NotApproved"
1932
+ },
1933
+ {
1934
+ "index": 3,
1935
+ "name": "TokenExists"
1936
+ },
1937
+ {
1938
+ "index": 4,
1939
+ "name": "TokenNotExists"
1940
+ },
1941
+ {
1942
+ "fields": [
1943
+ {
1944
+ "type": 8,
1945
+ "typeName": "String"
1946
+ }
1947
+ ],
1948
+ "index": 5,
1949
+ "name": "SafeTransferCheckFailed"
1950
+ }
1951
+ ]
1952
+ }
1953
+ },
1954
+ "path": [
1955
+ "openbrush_contracts",
1956
+ "traits",
1957
+ "errors",
1958
+ "psp34",
1959
+ "PSP34Error"
1960
+ ]
1961
+ }
1962
+ },
1963
+ {
1964
+ "id": 24,
1965
+ "type": {
1966
+ "def": {
1967
+ "variant": {
1968
+ "variants": [
1969
+ {
1970
+ "fields": [
1971
+ {
1972
+ "type": 5
1973
+ }
1974
+ ],
1975
+ "index": 0,
1976
+ "name": "Ok"
1977
+ },
1978
+ {
1979
+ "fields": [
1980
+ {
1981
+ "type": 13
1982
+ }
1983
+ ],
1984
+ "index": 1,
1985
+ "name": "Err"
1986
+ }
1987
+ ]
1988
+ }
1989
+ },
1990
+ "params": [
1991
+ {
1992
+ "name": "T",
1993
+ "type": 5
1994
+ },
1995
+ {
1996
+ "name": "E",
1997
+ "type": 13
1998
+ }
1999
+ ],
2000
+ "path": [
2001
+ "Result"
2002
+ ]
2003
+ }
2004
+ },
2005
+ {
2006
+ "id": 25,
2007
+ "type": {
2008
+ "def": {
2009
+ "variant": {
2010
+ "variants": [
2011
+ {
2012
+ "fields": [
2013
+ {
2014
+ "type": 26
2015
+ }
2016
+ ],
2017
+ "index": 0,
2018
+ "name": "Ok"
2019
+ },
2020
+ {
2021
+ "fields": [
2022
+ {
2023
+ "type": 13
2024
+ }
2025
+ ],
2026
+ "index": 1,
2027
+ "name": "Err"
2028
+ }
2029
+ ]
2030
+ }
2031
+ },
2032
+ "params": [
2033
+ {
2034
+ "name": "T",
2035
+ "type": 26
2036
+ },
2037
+ {
2038
+ "name": "E",
2039
+ "type": 13
2040
+ }
2041
+ ],
2042
+ "path": [
2043
+ "Result"
2044
+ ]
2045
+ }
2046
+ },
2047
+ {
2048
+ "id": 26,
2049
+ "type": {
2050
+ "def": {
2051
+ "variant": {
2052
+ "variants": [
2053
+ {
2054
+ "fields": [
2055
+ {
2056
+ "type": 10
2057
+ }
2058
+ ],
2059
+ "index": 0,
2060
+ "name": "Ok"
2061
+ },
2062
+ {
2063
+ "fields": [
2064
+ {
2065
+ "type": 23
2066
+ }
2067
+ ],
2068
+ "index": 1,
2069
+ "name": "Err"
2070
+ }
2071
+ ]
2072
+ }
2073
+ },
2074
+ "params": [
2075
+ {
2076
+ "name": "T",
2077
+ "type": 10
2078
+ },
2079
+ {
2080
+ "name": "E",
2081
+ "type": 23
2082
+ }
2083
+ ],
2084
+ "path": [
2085
+ "Result"
2086
+ ]
2087
+ }
2088
+ },
2089
+ {
2090
+ "id": 27,
2091
+ "type": {
2092
+ "def": {
2093
+ "variant": {
2094
+ "variants": [
2095
+ {
2096
+ "fields": [
2097
+ {
2098
+ "type": 28
2099
+ }
2100
+ ],
2101
+ "index": 0,
2102
+ "name": "Ok"
2103
+ },
2104
+ {
2105
+ "fields": [
2106
+ {
2107
+ "type": 13
2108
+ }
2109
+ ],
2110
+ "index": 1,
2111
+ "name": "Err"
2112
+ }
2113
+ ]
2114
+ }
2115
+ },
2116
+ "params": [
2117
+ {
2118
+ "name": "T",
2119
+ "type": 28
2120
+ },
2121
+ {
2122
+ "name": "E",
2123
+ "type": 13
2124
+ }
2125
+ ],
2126
+ "path": [
2127
+ "Result"
2128
+ ]
2129
+ }
2130
+ },
2131
+ {
2132
+ "id": 28,
2133
+ "type": {
2134
+ "def": {
2135
+ "variant": {
2136
+ "variants": [
2137
+ {
2138
+ "fields": [
2139
+ {
2140
+ "type": 3
2141
+ }
2142
+ ],
2143
+ "index": 0,
2144
+ "name": "Ok"
2145
+ },
2146
+ {
2147
+ "fields": [
2148
+ {
2149
+ "type": 29
2150
+ }
2151
+ ],
2152
+ "index": 1,
2153
+ "name": "Err"
2154
+ }
2155
+ ]
2156
+ }
2157
+ },
2158
+ "params": [
2159
+ {
2160
+ "name": "T",
2161
+ "type": 3
2162
+ },
2163
+ {
2164
+ "name": "E",
2165
+ "type": 29
2166
+ }
2167
+ ],
2168
+ "path": [
2169
+ "Result"
2170
+ ]
2171
+ }
2172
+ },
2173
+ {
2174
+ "id": 29,
2175
+ "type": {
2176
+ "def": {
2177
+ "variant": {
2178
+ "variants": [
2179
+ {
2180
+ "index": 0,
2181
+ "name": "CallerIsNotOwner"
2182
+ },
2183
+ {
2184
+ "index": 1,
2185
+ "name": "NewOwnerIsZero"
2186
+ }
2187
+ ]
2188
+ }
2189
+ },
2190
+ "path": [
2191
+ "openbrush_contracts",
2192
+ "traits",
2193
+ "errors",
2194
+ "ownable",
2195
+ "OwnableError"
2196
+ ]
2197
+ }
2198
+ },
2199
+ {
2200
+ "id": 30,
2201
+ "type": {
2202
+ "def": {
2203
+ "variant": {
2204
+ "variants": [
2205
+ {
2206
+ "fields": [
2207
+ {
2208
+ "type": 0
2209
+ }
2210
+ ],
2211
+ "index": 0,
2212
+ "name": "Ok"
2213
+ },
2214
+ {
2215
+ "fields": [
2216
+ {
2217
+ "type": 13
2218
+ }
2219
+ ],
2220
+ "index": 1,
2221
+ "name": "Err"
2222
+ }
2223
+ ]
2224
+ }
2225
+ },
2226
+ "params": [
2227
+ {
2228
+ "name": "T",
2229
+ "type": 0
2230
+ },
2231
+ {
2232
+ "name": "E",
2233
+ "type": 13
2234
+ }
2235
+ ],
2236
+ "path": [
2237
+ "Result"
2238
+ ]
2239
+ }
2240
+ },
2241
+ {
2242
+ "id": 31,
2243
+ "type": {
2244
+ "def": {
2245
+ "variant": {
2246
+ "variants": [
2247
+ {
2248
+ "fields": [
2249
+ {
2250
+ "type": 32
2251
+ }
2252
+ ],
2253
+ "index": 0,
2254
+ "name": "Ok"
2255
+ },
2256
+ {
2257
+ "fields": [
2258
+ {
2259
+ "type": 13
2260
+ }
2261
+ ],
2262
+ "index": 1,
2263
+ "name": "Err"
2264
+ }
2265
+ ]
2266
+ }
2267
+ },
2268
+ "params": [
2269
+ {
2270
+ "name": "T",
2271
+ "type": 32
2272
+ },
2273
+ {
2274
+ "name": "E",
2275
+ "type": 13
2276
+ }
2277
+ ],
2278
+ "path": [
2279
+ "Result"
2280
+ ]
2281
+ }
2282
+ },
2283
+ {
2284
+ "id": 32,
2285
+ "type": {
2286
+ "def": {
2287
+ "variant": {
2288
+ "variants": [
2289
+ {
2290
+ "index": 0,
2291
+ "name": "None"
2292
+ },
2293
+ {
2294
+ "fields": [
2295
+ {
2296
+ "type": 8
2297
+ }
2298
+ ],
2299
+ "index": 1,
2300
+ "name": "Some"
2301
+ }
2302
+ ]
2303
+ }
2304
+ },
2305
+ "params": [
2306
+ {
2307
+ "name": "T",
2308
+ "type": 8
2309
+ }
2310
+ ],
2311
+ "path": [
2312
+ "Option"
2313
+ ]
2314
+ }
2315
+ },
2316
+ {
2317
+ "id": 33,
2318
+ "type": {
2319
+ "def": {
2320
+ "variant": {
2321
+ "variants": [
2322
+ {
2323
+ "fields": [
2324
+ {
2325
+ "type": 34
2326
+ }
2327
+ ],
2328
+ "index": 0,
2329
+ "name": "Ok"
2330
+ },
2331
+ {
2332
+ "fields": [
2333
+ {
2334
+ "type": 13
2335
+ }
2336
+ ],
2337
+ "index": 1,
2338
+ "name": "Err"
2339
+ }
2340
+ ]
2341
+ }
2342
+ },
2343
+ "params": [
2344
+ {
2345
+ "name": "T",
2346
+ "type": 34
2347
+ },
2348
+ {
2349
+ "name": "E",
2350
+ "type": 13
2351
+ }
2352
+ ],
2353
+ "path": [
2354
+ "Result"
2355
+ ]
2356
+ }
2357
+ },
2358
+ {
2359
+ "id": 34,
2360
+ "type": {
2361
+ "def": {
2362
+ "variant": {
2363
+ "variants": [
2364
+ {
2365
+ "fields": [
2366
+ {
2367
+ "type": 35
2368
+ }
2369
+ ],
2370
+ "index": 0,
2371
+ "name": "Ok"
2372
+ },
2373
+ {
2374
+ "fields": [
2375
+ {
2376
+ "type": 36
2377
+ }
2378
+ ],
2379
+ "index": 1,
2380
+ "name": "Err"
2381
+ }
2382
+ ]
2383
+ }
2384
+ },
2385
+ "params": [
2386
+ {
2387
+ "name": "T",
2388
+ "type": 35
2389
+ },
2390
+ {
2391
+ "name": "E",
2392
+ "type": 36
2393
+ }
2394
+ ],
2395
+ "path": [
2396
+ "Result"
2397
+ ]
2398
+ }
2399
+ },
2400
+ {
2401
+ "id": 35,
2402
+ "type": {
2403
+ "def": {
2404
+ "primitive": "str"
2405
+ }
2406
+ }
2407
+ },
2408
+ {
2409
+ "id": 36,
2410
+ "type": {
2411
+ "def": {
2412
+ "variant": {
2413
+ "variants": [
2414
+ {
2415
+ "fields": [
2416
+ {
2417
+ "type": 37,
2418
+ "typeName": "PinkError"
2419
+ }
2420
+ ],
2421
+ "index": 0,
2422
+ "name": "Pink"
2423
+ },
2424
+ {
2425
+ "fields": [
2426
+ {
2427
+ "type": 29,
2428
+ "typeName": "OwnableError"
2429
+ }
2430
+ ],
2431
+ "index": 1,
2432
+ "name": "Ownable"
2433
+ }
2434
+ ]
2435
+ }
2436
+ },
2437
+ "path": [
2438
+ "psp34_minting",
2439
+ "internal",
2440
+ "Error"
2441
+ ]
2442
+ }
2443
+ },
2444
+ {
2445
+ "id": 37,
2446
+ "type": {
2447
+ "def": {
2448
+ "variant": {
2449
+ "variants": [
2450
+ {
2451
+ "index": 0,
2452
+ "name": "CannotMintZeroTokens"
2453
+ },
2454
+ {
2455
+ "index": 1,
2456
+ "name": "CollectionIsFull"
2457
+ },
2458
+ {
2459
+ "index": 2,
2460
+ "name": "UriNotFound"
2461
+ },
2462
+ {
2463
+ "index": 3,
2464
+ "name": "TokenExists"
2465
+ },
2466
+ {
2467
+ "index": 4,
2468
+ "name": "TokenNotFound"
2469
+ }
2470
+ ]
2471
+ }
2472
+ },
2473
+ "path": [
2474
+ "psp34_minting",
2475
+ "internal",
2476
+ "PinkError"
2477
+ ]
2478
+ }
2479
+ },
2480
+ {
2481
+ "id": 38,
2482
+ "type": {
2483
+ "def": {
2484
+ "variant": {
2485
+ "variants": [
2486
+ {
2487
+ "fields": [
2488
+ {
2489
+ "type": 39
2490
+ }
2491
+ ],
2492
+ "index": 0,
2493
+ "name": "Ok"
2494
+ },
2495
+ {
2496
+ "fields": [
2497
+ {
2498
+ "type": 13
2499
+ }
2500
+ ],
2501
+ "index": 1,
2502
+ "name": "Err"
2503
+ }
2504
+ ]
2505
+ }
2506
+ },
2507
+ "params": [
2508
+ {
2509
+ "name": "T",
2510
+ "type": 39
2511
+ },
2512
+ {
2513
+ "name": "E",
2514
+ "type": 13
2515
+ }
2516
+ ],
2517
+ "path": [
2518
+ "Result"
2519
+ ]
2520
+ }
2521
+ },
2522
+ {
2523
+ "id": 39,
2524
+ "type": {
2525
+ "def": {
2526
+ "variant": {
2527
+ "variants": [
2528
+ {
2529
+ "fields": [
2530
+ {
2531
+ "type": 10
2532
+ }
2533
+ ],
2534
+ "index": 0,
2535
+ "name": "Ok"
2536
+ },
2537
+ {
2538
+ "fields": [
2539
+ {
2540
+ "type": 36
2541
+ }
2542
+ ],
2543
+ "index": 1,
2544
+ "name": "Err"
2545
+ }
2546
+ ]
2547
+ }
2548
+ },
2549
+ "params": [
2550
+ {
2551
+ "name": "T",
2552
+ "type": 10
2553
+ },
2554
+ {
2555
+ "name": "E",
2556
+ "type": 36
2557
+ }
2558
+ ],
2559
+ "path": [
2560
+ "Result"
2561
+ ]
2562
+ }
2563
+ },
2564
+ {
2565
+ "id": 40,
2566
+ "type": {
2567
+ "def": {
2568
+ "variant": {
2569
+ "variants": [
2570
+ {
2571
+ "index": 0,
2572
+ "name": "None"
2573
+ },
2574
+ {
2575
+ "fields": [
2576
+ {
2577
+ "type": 6
2578
+ }
2579
+ ],
2580
+ "index": 1,
2581
+ "name": "Some"
2582
+ }
2583
+ ]
2584
+ }
2585
+ },
2586
+ "params": [
2587
+ {
2588
+ "name": "T",
2589
+ "type": 6
2590
+ }
2591
+ ],
2592
+ "path": [
2593
+ "Option"
2594
+ ]
2595
+ }
2596
+ },
2597
+ {
2598
+ "id": 41,
2599
+ "type": {
2600
+ "def": {
2601
+ "variant": {
2602
+ "variants": [
2603
+ {
2604
+ "fields": [
2605
+ {
2606
+ "type": 42
2607
+ }
2608
+ ],
2609
+ "index": 0,
2610
+ "name": "Ok"
2611
+ },
2612
+ {
2613
+ "fields": [
2614
+ {
2615
+ "type": 13
2616
+ }
2617
+ ],
2618
+ "index": 1,
2619
+ "name": "Err"
2620
+ }
2621
+ ]
2622
+ }
2623
+ },
2624
+ "params": [
2625
+ {
2626
+ "name": "T",
2627
+ "type": 42
2628
+ },
2629
+ {
2630
+ "name": "E",
2631
+ "type": 13
2632
+ }
2633
+ ],
2634
+ "path": [
2635
+ "Result"
2636
+ ]
2637
+ }
2638
+ },
2639
+ {
2640
+ "id": 42,
2641
+ "type": {
2642
+ "def": {
2643
+ "variant": {
2644
+ "variants": [
2645
+ {
2646
+ "fields": [
2647
+ {
2648
+ "type": 3
2649
+ }
2650
+ ],
2651
+ "index": 0,
2652
+ "name": "Ok"
2653
+ },
2654
+ {
2655
+ "fields": [
2656
+ {
2657
+ "type": 36
2658
+ }
2659
+ ],
2660
+ "index": 1,
2661
+ "name": "Err"
2662
+ }
2663
+ ]
2664
+ }
2665
+ },
2666
+ "params": [
2667
+ {
2668
+ "name": "T",
2669
+ "type": 3
2670
+ },
2671
+ {
2672
+ "name": "E",
2673
+ "type": 36
2674
+ }
2675
+ ],
2676
+ "path": [
2677
+ "Result"
2678
+ ]
2679
+ }
2680
+ },
2681
+ {
2682
+ "id": 43,
2683
+ "type": {
2684
+ "def": {
2685
+ "variant": {
2686
+ "variants": [
2687
+ {
2688
+ "fields": [
2689
+ {
2690
+ "type": 40
2691
+ }
2692
+ ],
2693
+ "index": 0,
2694
+ "name": "Ok"
2695
+ },
2696
+ {
2697
+ "fields": [
2698
+ {
2699
+ "type": 13
2700
+ }
2701
+ ],
2702
+ "index": 1,
2703
+ "name": "Err"
2704
+ }
2705
+ ]
2706
+ }
2707
+ },
2708
+ "params": [
2709
+ {
2710
+ "name": "T",
2711
+ "type": 40
2712
+ },
2713
+ {
2714
+ "name": "E",
2715
+ "type": 13
2716
+ }
2717
+ ],
2718
+ "path": [
2719
+ "Result"
2720
+ ]
2721
+ }
2722
+ },
2723
+ {
2724
+ "id": 44,
2725
+ "type": {
2726
+ "def": {
2727
+ "composite": {
2728
+ "fields": [
2729
+ {
2730
+ "type": 1,
2731
+ "typeName": "[u8; 32]"
2732
+ }
2733
+ ]
2734
+ }
2735
+ },
2736
+ "path": [
2737
+ "ink_primitives",
2738
+ "types",
2739
+ "Hash"
2740
+ ]
2741
+ }
2742
+ },
2743
+ {
2744
+ "id": 45,
2745
+ "type": {
2746
+ "def": {
2747
+ "variant": {}
2748
+ },
2749
+ "path": [
2750
+ "ink_env",
2751
+ "types",
2752
+ "NoChainExtension"
2753
+ ]
2754
+ }
2755
+ }
2756
+ ],
2757
+ "version": "4"
2758
+ }