@d9-network/spec 0.0.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 (36) hide show
  1. package/.papi/contracts/burnManager.json +1300 -0
  2. package/.papi/contracts/burnMining.json +1385 -0
  3. package/.papi/contracts/crossChainTransfer.json +1693 -0
  4. package/.papi/contracts/marketMaker.json +1470 -0
  5. package/.papi/contracts/merchantMining.json +1750 -0
  6. package/.papi/contracts/miningPool.json +1019 -0
  7. package/.papi/contracts/nodeReward.json +1214 -0
  8. package/.papi/contracts/usdt.json +1036 -0
  9. package/.papi/descriptors/.gitignore +3 -0
  10. package/.papi/descriptors/package.json +24 -0
  11. package/.papi/metadata/d9.scale +0 -0
  12. package/.papi/polkadot-api.json +22 -0
  13. package/assets/ABIs/burn-manager.json +1300 -0
  14. package/assets/ABIs/burn-mining.json +1385 -0
  15. package/assets/ABIs/cross-chain-transfer.json +1693 -0
  16. package/assets/ABIs/market-maker.json +1470 -0
  17. package/assets/ABIs/merchant-mining.json +1750 -0
  18. package/assets/ABIs/mining-pool.json +1019 -0
  19. package/assets/ABIs/node-reward.json +1214 -0
  20. package/assets/ABIs/usdt.json +1036 -0
  21. package/package.json +51 -0
  22. package/scripts/papi-add-ink.ts +104 -0
  23. package/src/client.ts +68 -0
  24. package/src/index.ts +17 -0
  25. package/src/wallet/account.ts +57 -0
  26. package/src/wallet/hex.ts +30 -0
  27. package/src/wallet/index.ts +6 -0
  28. package/src/wallet/mnemonic.ts +19 -0
  29. package/src/wallet/signer.ts +9 -0
  30. package/src/wallet/sr25519.ts +42 -0
  31. package/src/wallet/ss58.ts +14 -0
  32. package/test/client.test.ts +15 -0
  33. package/test/descriptors.test.ts +32 -0
  34. package/test/wallet.test.ts +65 -0
  35. package/tsconfig.json +13 -0
  36. package/tsdown.config.ts +13 -0
@@ -0,0 +1,1019 @@
1
+ {
2
+ "source": {
3
+ "hash": "0x7786436103072d79da5e85e15869fc4b3b835913425a705a809e8677626f1c7c",
4
+ "language": "ink! 4.3.0",
5
+ "compiler": "rustc 1.72.1",
6
+ "build_info": {
7
+ "build_mode": "Release",
8
+ "cargo_contract_version": "3.2.0",
9
+ "rust_toolchain": "stable-x86_64-apple-darwin",
10
+ "wasm_opt_settings": {
11
+ "keep_debug_symbols": false,
12
+ "optimization_passes": "Z"
13
+ }
14
+ }
15
+ },
16
+ "contract": {
17
+ "name": "mining_pool",
18
+ "version": "0.1.0",
19
+ "authors": [
20
+ "D9"
21
+ ]
22
+ },
23
+ "spec": {
24
+ "constructors": [
25
+ {
26
+ "args": [
27
+ {
28
+ "label": "main_contract",
29
+ "type": {
30
+ "displayName": [
31
+ "AccountId"
32
+ ],
33
+ "type": 0
34
+ }
35
+ },
36
+ {
37
+ "label": "merchant_contract",
38
+ "type": {
39
+ "displayName": [
40
+ "AccountId"
41
+ ],
42
+ "type": 0
43
+ }
44
+ },
45
+ {
46
+ "label": "node_reward_contract",
47
+ "type": {
48
+ "displayName": [
49
+ "AccountId"
50
+ ],
51
+ "type": 0
52
+ }
53
+ },
54
+ {
55
+ "label": "amm_contract",
56
+ "type": {
57
+ "displayName": [
58
+ "AccountId"
59
+ ],
60
+ "type": 0
61
+ }
62
+ }
63
+ ],
64
+ "default": false,
65
+ "docs": [
66
+ "Constructor that initializes the `bool` value to the given `init_value`."
67
+ ],
68
+ "label": "new",
69
+ "payable": false,
70
+ "returnType": {
71
+ "displayName": [
72
+ "ink_primitives",
73
+ "ConstructorResult"
74
+ ],
75
+ "type": 5
76
+ },
77
+ "selector": "0x9bae9d5e"
78
+ }
79
+ ],
80
+ "docs": [],
81
+ "environment": {
82
+ "accountId": {
83
+ "displayName": [
84
+ "AccountId"
85
+ ],
86
+ "type": 0
87
+ },
88
+ "balance": {
89
+ "displayName": [
90
+ "Balance"
91
+ ],
92
+ "type": 3
93
+ },
94
+ "blockNumber": {
95
+ "displayName": [
96
+ "BlockNumber"
97
+ ],
98
+ "type": 4
99
+ },
100
+ "chainExtension": {
101
+ "displayName": [
102
+ "ChainExtension"
103
+ ],
104
+ "type": 16
105
+ },
106
+ "hash": {
107
+ "displayName": [
108
+ "Hash"
109
+ ],
110
+ "type": 14
111
+ },
112
+ "maxEventTopics": 4,
113
+ "timestamp": {
114
+ "displayName": [
115
+ "Timestamp"
116
+ ],
117
+ "type": 15
118
+ }
119
+ },
120
+ "events": [],
121
+ "lang_error": {
122
+ "displayName": [
123
+ "ink",
124
+ "LangError"
125
+ ],
126
+ "type": 7
127
+ },
128
+ "messages": [
129
+ {
130
+ "args": [],
131
+ "default": false,
132
+ "docs": [],
133
+ "label": "get_accumulative_reward_pool",
134
+ "mutates": false,
135
+ "payable": false,
136
+ "returnType": {
137
+ "displayName": [
138
+ "ink",
139
+ "MessageResult"
140
+ ],
141
+ "type": 8
142
+ },
143
+ "selector": "0x71ebcde6"
144
+ },
145
+ {
146
+ "args": [
147
+ {
148
+ "label": "account_id",
149
+ "type": {
150
+ "displayName": [
151
+ "AccountId"
152
+ ],
153
+ "type": 0
154
+ }
155
+ },
156
+ {
157
+ "label": "amount",
158
+ "type": {
159
+ "displayName": [
160
+ "Balance"
161
+ ],
162
+ "type": 3
163
+ }
164
+ }
165
+ ],
166
+ "default": false,
167
+ "docs": [],
168
+ "label": "pay_node_reward",
169
+ "mutates": true,
170
+ "payable": false,
171
+ "returnType": {
172
+ "displayName": [
173
+ "ink",
174
+ "MessageResult"
175
+ ],
176
+ "type": 9
177
+ },
178
+ "selector": "0x2f0dd006"
179
+ },
180
+ {
181
+ "args": [],
182
+ "default": false,
183
+ "docs": [],
184
+ "label": "get_merchant_volume",
185
+ "mutates": false,
186
+ "payable": false,
187
+ "returnType": {
188
+ "displayName": [
189
+ "ink",
190
+ "MessageResult"
191
+ ],
192
+ "type": 8
193
+ },
194
+ "selector": "0x3e3207be"
195
+ },
196
+ {
197
+ "args": [
198
+ {
199
+ "label": "session_index",
200
+ "type": {
201
+ "displayName": [
202
+ "u32"
203
+ ],
204
+ "type": 4
205
+ }
206
+ }
207
+ ],
208
+ "default": false,
209
+ "docs": [],
210
+ "label": "get_session_volume",
211
+ "mutates": false,
212
+ "payable": false,
213
+ "returnType": {
214
+ "displayName": [
215
+ "ink",
216
+ "MessageResult"
217
+ ],
218
+ "type": 8
219
+ },
220
+ "selector": "0x91894472"
221
+ },
222
+ {
223
+ "args": [
224
+ {
225
+ "label": "session_index",
226
+ "type": {
227
+ "displayName": [
228
+ "u32"
229
+ ],
230
+ "type": 4
231
+ }
232
+ }
233
+ ],
234
+ "default": false,
235
+ "docs": [],
236
+ "label": "update_pool_and_retrieve",
237
+ "mutates": true,
238
+ "payable": false,
239
+ "returnType": {
240
+ "displayName": [
241
+ "ink",
242
+ "MessageResult"
243
+ ],
244
+ "type": 12
245
+ },
246
+ "selector": "0x8a1783cd"
247
+ },
248
+ {
249
+ "args": [
250
+ {
251
+ "label": "amount",
252
+ "type": {
253
+ "displayName": [
254
+ "Balance"
255
+ ],
256
+ "type": 3
257
+ }
258
+ }
259
+ ],
260
+ "default": false,
261
+ "docs": [],
262
+ "label": "deduct_from_reward_pool",
263
+ "mutates": true,
264
+ "payable": false,
265
+ "returnType": {
266
+ "displayName": [
267
+ "ink",
268
+ "MessageResult"
269
+ ],
270
+ "type": 9
271
+ },
272
+ "selector": "0x7df305eb"
273
+ },
274
+ {
275
+ "args": [],
276
+ "default": false,
277
+ "docs": [],
278
+ "label": "get_total_volume",
279
+ "mutates": false,
280
+ "payable": false,
281
+ "returnType": {
282
+ "displayName": [
283
+ "ink",
284
+ "MessageResult"
285
+ ],
286
+ "type": 8
287
+ },
288
+ "selector": "0xe88330b2"
289
+ },
290
+ {
291
+ "args": [],
292
+ "default": false,
293
+ "docs": [],
294
+ "label": "process_merchant_payment",
295
+ "mutates": true,
296
+ "payable": true,
297
+ "returnType": {
298
+ "displayName": [
299
+ "ink",
300
+ "MessageResult"
301
+ ],
302
+ "type": 9
303
+ },
304
+ "selector": "0xcbdfeaf9"
305
+ },
306
+ {
307
+ "args": [
308
+ {
309
+ "label": "user_account",
310
+ "type": {
311
+ "displayName": [
312
+ "AccountId"
313
+ ],
314
+ "type": 0
315
+ }
316
+ },
317
+ {
318
+ "label": "redeemable_usdt",
319
+ "type": {
320
+ "displayName": [
321
+ "Balance"
322
+ ],
323
+ "type": 3
324
+ }
325
+ }
326
+ ],
327
+ "default": false,
328
+ "docs": [],
329
+ "label": "merchant_user_redeem_d9",
330
+ "mutates": false,
331
+ "payable": false,
332
+ "returnType": {
333
+ "displayName": [
334
+ "ink",
335
+ "MessageResult"
336
+ ],
337
+ "type": 12
338
+ },
339
+ "selector": "0x152062a1"
340
+ },
341
+ {
342
+ "args": [
343
+ {
344
+ "label": "merchant_contract",
345
+ "type": {
346
+ "displayName": [
347
+ "AccountId"
348
+ ],
349
+ "type": 0
350
+ }
351
+ }
352
+ ],
353
+ "default": false,
354
+ "docs": [],
355
+ "label": "change_merchant_contract",
356
+ "mutates": true,
357
+ "payable": false,
358
+ "returnType": {
359
+ "displayName": [
360
+ "ink",
361
+ "MessageResult"
362
+ ],
363
+ "type": 9
364
+ },
365
+ "selector": "0x1221b207"
366
+ },
367
+ {
368
+ "args": [
369
+ {
370
+ "label": "to",
371
+ "type": {
372
+ "displayName": [
373
+ "AccountId"
374
+ ],
375
+ "type": 0
376
+ }
377
+ },
378
+ {
379
+ "label": "amount",
380
+ "type": {
381
+ "displayName": [
382
+ "Balance"
383
+ ],
384
+ "type": 3
385
+ }
386
+ }
387
+ ],
388
+ "default": false,
389
+ "docs": [],
390
+ "label": "send_to",
391
+ "mutates": true,
392
+ "payable": false,
393
+ "returnType": {
394
+ "displayName": [
395
+ "ink",
396
+ "MessageResult"
397
+ ],
398
+ "type": 9
399
+ },
400
+ "selector": "0x651d5be0"
401
+ },
402
+ {
403
+ "args": [
404
+ {
405
+ "label": "node_reward_contract",
406
+ "type": {
407
+ "displayName": [
408
+ "AccountId"
409
+ ],
410
+ "type": 0
411
+ }
412
+ }
413
+ ],
414
+ "default": false,
415
+ "docs": [],
416
+ "label": "change_node_reward_contract",
417
+ "mutates": true,
418
+ "payable": false,
419
+ "returnType": {
420
+ "displayName": [
421
+ "ink",
422
+ "MessageResult"
423
+ ],
424
+ "type": 9
425
+ },
426
+ "selector": "0x5cfb2c63"
427
+ },
428
+ {
429
+ "args": [
430
+ {
431
+ "label": "amm_contract",
432
+ "type": {
433
+ "displayName": [
434
+ "AccountId"
435
+ ],
436
+ "type": 0
437
+ }
438
+ }
439
+ ],
440
+ "default": false,
441
+ "docs": [],
442
+ "label": "change_amm_contract",
443
+ "mutates": true,
444
+ "payable": false,
445
+ "returnType": {
446
+ "displayName": [
447
+ "ink",
448
+ "MessageResult"
449
+ ],
450
+ "type": 9
451
+ },
452
+ "selector": "0x0db11b82"
453
+ },
454
+ {
455
+ "args": [
456
+ {
457
+ "label": "main_contract",
458
+ "type": {
459
+ "displayName": [
460
+ "AccountId"
461
+ ],
462
+ "type": 0
463
+ }
464
+ }
465
+ ],
466
+ "default": false,
467
+ "docs": [],
468
+ "label": "change_main_contract",
469
+ "mutates": true,
470
+ "payable": false,
471
+ "returnType": {
472
+ "displayName": [
473
+ "ink",
474
+ "MessageResult"
475
+ ],
476
+ "type": 9
477
+ },
478
+ "selector": "0xbb530edc"
479
+ },
480
+ {
481
+ "args": [
482
+ {
483
+ "label": "code_hash",
484
+ "type": {
485
+ "displayName": [],
486
+ "type": 1
487
+ }
488
+ }
489
+ ],
490
+ "default": false,
491
+ "docs": [],
492
+ "label": "set_code",
493
+ "mutates": true,
494
+ "payable": false,
495
+ "returnType": {
496
+ "displayName": [
497
+ "ink",
498
+ "MessageResult"
499
+ ],
500
+ "type": 5
501
+ },
502
+ "selector": "0x694fb50f"
503
+ }
504
+ ]
505
+ },
506
+ "storage": {
507
+ "root": {
508
+ "layout": {
509
+ "struct": {
510
+ "fields": [
511
+ {
512
+ "layout": {
513
+ "leaf": {
514
+ "key": "0x00000000",
515
+ "ty": 0
516
+ }
517
+ },
518
+ "name": "admin"
519
+ },
520
+ {
521
+ "layout": {
522
+ "leaf": {
523
+ "key": "0x00000000",
524
+ "ty": 0
525
+ }
526
+ },
527
+ "name": "main_contract"
528
+ },
529
+ {
530
+ "layout": {
531
+ "leaf": {
532
+ "key": "0x00000000",
533
+ "ty": 0
534
+ }
535
+ },
536
+ "name": "merchant_contract"
537
+ },
538
+ {
539
+ "layout": {
540
+ "leaf": {
541
+ "key": "0x00000000",
542
+ "ty": 0
543
+ }
544
+ },
545
+ "name": "node_reward_contract"
546
+ },
547
+ {
548
+ "layout": {
549
+ "leaf": {
550
+ "key": "0x00000000",
551
+ "ty": 0
552
+ }
553
+ },
554
+ "name": "amm_contract"
555
+ },
556
+ {
557
+ "layout": {
558
+ "leaf": {
559
+ "key": "0x00000000",
560
+ "ty": 3
561
+ }
562
+ },
563
+ "name": "merchant_volume"
564
+ },
565
+ {
566
+ "layout": {
567
+ "root": {
568
+ "layout": {
569
+ "leaf": {
570
+ "key": "0xd9887759",
571
+ "ty": 3
572
+ }
573
+ },
574
+ "root_key": "0xd9887759"
575
+ }
576
+ },
577
+ "name": "volume_at_index"
578
+ },
579
+ {
580
+ "layout": {
581
+ "leaf": {
582
+ "key": "0x00000000",
583
+ "ty": 4
584
+ }
585
+ },
586
+ "name": "last_session"
587
+ },
588
+ {
589
+ "layout": {
590
+ "leaf": {
591
+ "key": "0x00000000",
592
+ "ty": 3
593
+ }
594
+ },
595
+ "name": "accumulative_reward_pool"
596
+ }
597
+ ],
598
+ "name": "MiningPool"
599
+ }
600
+ },
601
+ "root_key": "0x00000000"
602
+ }
603
+ },
604
+ "types": [
605
+ {
606
+ "id": 0,
607
+ "type": {
608
+ "def": {
609
+ "composite": {
610
+ "fields": [
611
+ {
612
+ "type": 1,
613
+ "typeName": "[u8; 32]"
614
+ }
615
+ ]
616
+ }
617
+ },
618
+ "path": [
619
+ "ink_primitives",
620
+ "types",
621
+ "AccountId"
622
+ ]
623
+ }
624
+ },
625
+ {
626
+ "id": 1,
627
+ "type": {
628
+ "def": {
629
+ "array": {
630
+ "len": 32,
631
+ "type": 2
632
+ }
633
+ }
634
+ }
635
+ },
636
+ {
637
+ "id": 2,
638
+ "type": {
639
+ "def": {
640
+ "primitive": "u8"
641
+ }
642
+ }
643
+ },
644
+ {
645
+ "id": 3,
646
+ "type": {
647
+ "def": {
648
+ "primitive": "u128"
649
+ }
650
+ }
651
+ },
652
+ {
653
+ "id": 4,
654
+ "type": {
655
+ "def": {
656
+ "primitive": "u32"
657
+ }
658
+ }
659
+ },
660
+ {
661
+ "id": 5,
662
+ "type": {
663
+ "def": {
664
+ "variant": {
665
+ "variants": [
666
+ {
667
+ "fields": [
668
+ {
669
+ "type": 6
670
+ }
671
+ ],
672
+ "index": 0,
673
+ "name": "Ok"
674
+ },
675
+ {
676
+ "fields": [
677
+ {
678
+ "type": 7
679
+ }
680
+ ],
681
+ "index": 1,
682
+ "name": "Err"
683
+ }
684
+ ]
685
+ }
686
+ },
687
+ "params": [
688
+ {
689
+ "name": "T",
690
+ "type": 6
691
+ },
692
+ {
693
+ "name": "E",
694
+ "type": 7
695
+ }
696
+ ],
697
+ "path": [
698
+ "Result"
699
+ ]
700
+ }
701
+ },
702
+ {
703
+ "id": 6,
704
+ "type": {
705
+ "def": {
706
+ "tuple": []
707
+ }
708
+ }
709
+ },
710
+ {
711
+ "id": 7,
712
+ "type": {
713
+ "def": {
714
+ "variant": {
715
+ "variants": [
716
+ {
717
+ "index": 1,
718
+ "name": "CouldNotReadInput"
719
+ }
720
+ ]
721
+ }
722
+ },
723
+ "path": [
724
+ "ink_primitives",
725
+ "LangError"
726
+ ]
727
+ }
728
+ },
729
+ {
730
+ "id": 8,
731
+ "type": {
732
+ "def": {
733
+ "variant": {
734
+ "variants": [
735
+ {
736
+ "fields": [
737
+ {
738
+ "type": 3
739
+ }
740
+ ],
741
+ "index": 0,
742
+ "name": "Ok"
743
+ },
744
+ {
745
+ "fields": [
746
+ {
747
+ "type": 7
748
+ }
749
+ ],
750
+ "index": 1,
751
+ "name": "Err"
752
+ }
753
+ ]
754
+ }
755
+ },
756
+ "params": [
757
+ {
758
+ "name": "T",
759
+ "type": 3
760
+ },
761
+ {
762
+ "name": "E",
763
+ "type": 7
764
+ }
765
+ ],
766
+ "path": [
767
+ "Result"
768
+ ]
769
+ }
770
+ },
771
+ {
772
+ "id": 9,
773
+ "type": {
774
+ "def": {
775
+ "variant": {
776
+ "variants": [
777
+ {
778
+ "fields": [
779
+ {
780
+ "type": 10
781
+ }
782
+ ],
783
+ "index": 0,
784
+ "name": "Ok"
785
+ },
786
+ {
787
+ "fields": [
788
+ {
789
+ "type": 7
790
+ }
791
+ ],
792
+ "index": 1,
793
+ "name": "Err"
794
+ }
795
+ ]
796
+ }
797
+ },
798
+ "params": [
799
+ {
800
+ "name": "T",
801
+ "type": 10
802
+ },
803
+ {
804
+ "name": "E",
805
+ "type": 7
806
+ }
807
+ ],
808
+ "path": [
809
+ "Result"
810
+ ]
811
+ }
812
+ },
813
+ {
814
+ "id": 10,
815
+ "type": {
816
+ "def": {
817
+ "variant": {
818
+ "variants": [
819
+ {
820
+ "fields": [
821
+ {
822
+ "type": 6
823
+ }
824
+ ],
825
+ "index": 0,
826
+ "name": "Ok"
827
+ },
828
+ {
829
+ "fields": [
830
+ {
831
+ "type": 11
832
+ }
833
+ ],
834
+ "index": 1,
835
+ "name": "Err"
836
+ }
837
+ ]
838
+ }
839
+ },
840
+ "params": [
841
+ {
842
+ "name": "T",
843
+ "type": 6
844
+ },
845
+ {
846
+ "name": "E",
847
+ "type": 11
848
+ }
849
+ ],
850
+ "path": [
851
+ "Result"
852
+ ]
853
+ }
854
+ },
855
+ {
856
+ "id": 11,
857
+ "type": {
858
+ "def": {
859
+ "variant": {
860
+ "variants": [
861
+ {
862
+ "fields": [
863
+ {
864
+ "type": 0,
865
+ "typeName": "AccountId"
866
+ }
867
+ ],
868
+ "index": 0,
869
+ "name": "OnlyCallableBy"
870
+ },
871
+ {
872
+ "index": 1,
873
+ "name": "FailedToGetExchangeAmount"
874
+ },
875
+ {
876
+ "index": 2,
877
+ "name": "FailedToTransferD9ToUser"
878
+ },
879
+ {
880
+ "index": 3,
881
+ "name": "SessionPoolNotReady"
882
+ }
883
+ ]
884
+ }
885
+ },
886
+ "path": [
887
+ "mining_pool",
888
+ "mining_pool",
889
+ "Error"
890
+ ]
891
+ }
892
+ },
893
+ {
894
+ "id": 12,
895
+ "type": {
896
+ "def": {
897
+ "variant": {
898
+ "variants": [
899
+ {
900
+ "fields": [
901
+ {
902
+ "type": 13
903
+ }
904
+ ],
905
+ "index": 0,
906
+ "name": "Ok"
907
+ },
908
+ {
909
+ "fields": [
910
+ {
911
+ "type": 7
912
+ }
913
+ ],
914
+ "index": 1,
915
+ "name": "Err"
916
+ }
917
+ ]
918
+ }
919
+ },
920
+ "params": [
921
+ {
922
+ "name": "T",
923
+ "type": 13
924
+ },
925
+ {
926
+ "name": "E",
927
+ "type": 7
928
+ }
929
+ ],
930
+ "path": [
931
+ "Result"
932
+ ]
933
+ }
934
+ },
935
+ {
936
+ "id": 13,
937
+ "type": {
938
+ "def": {
939
+ "variant": {
940
+ "variants": [
941
+ {
942
+ "fields": [
943
+ {
944
+ "type": 3
945
+ }
946
+ ],
947
+ "index": 0,
948
+ "name": "Ok"
949
+ },
950
+ {
951
+ "fields": [
952
+ {
953
+ "type": 11
954
+ }
955
+ ],
956
+ "index": 1,
957
+ "name": "Err"
958
+ }
959
+ ]
960
+ }
961
+ },
962
+ "params": [
963
+ {
964
+ "name": "T",
965
+ "type": 3
966
+ },
967
+ {
968
+ "name": "E",
969
+ "type": 11
970
+ }
971
+ ],
972
+ "path": [
973
+ "Result"
974
+ ]
975
+ }
976
+ },
977
+ {
978
+ "id": 14,
979
+ "type": {
980
+ "def": {
981
+ "composite": {
982
+ "fields": [
983
+ {
984
+ "type": 1,
985
+ "typeName": "[u8; 32]"
986
+ }
987
+ ]
988
+ }
989
+ },
990
+ "path": [
991
+ "ink_primitives",
992
+ "types",
993
+ "Hash"
994
+ ]
995
+ }
996
+ },
997
+ {
998
+ "id": 15,
999
+ "type": {
1000
+ "def": {
1001
+ "primitive": "u64"
1002
+ }
1003
+ }
1004
+ },
1005
+ {
1006
+ "id": 16,
1007
+ "type": {
1008
+ "def": {
1009
+ "variant": {}
1010
+ },
1011
+ "path": [
1012
+ "d9_chain_extension",
1013
+ "D9ChainExtension"
1014
+ ]
1015
+ }
1016
+ }
1017
+ ],
1018
+ "version": "4"
1019
+ }