@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,1385 @@
1
+ {
2
+ "source": {
3
+ "hash": "0xa1245e9aaa904fd32b47665ecb84bff4d2357eea3d82257d092e3e05b66b3904",
4
+ "language": "ink! 4.3.0",
5
+ "compiler": "rustc 1.72.0",
6
+ "build_info": {
7
+ "build_mode": "Release",
8
+ "cargo_contract_version": "3.2.0",
9
+ "rust_toolchain": "stable-aarch64-apple-darwin",
10
+ "wasm_opt_settings": {
11
+ "keep_debug_symbols": false,
12
+ "optimization_passes": "Z"
13
+ }
14
+ }
15
+ },
16
+ "contract": {
17
+ "name": "d9-burn-mining",
18
+ "version": "0.1.0",
19
+ "authors": [
20
+ "D9Dev"
21
+ ]
22
+ },
23
+ "spec": {
24
+ "constructors": [
25
+ {
26
+ "args": [
27
+ {
28
+ "label": "main_pool",
29
+ "type": {
30
+ "displayName": [
31
+ "AccountId"
32
+ ],
33
+ "type": 1
34
+ }
35
+ },
36
+ {
37
+ "label": "burn_minimum",
38
+ "type": {
39
+ "displayName": [
40
+ "Balance"
41
+ ],
42
+ "type": 0
43
+ }
44
+ }
45
+ ],
46
+ "default": false,
47
+ "docs": [],
48
+ "label": "new",
49
+ "payable": true,
50
+ "returnType": {
51
+ "displayName": [
52
+ "ink_primitives",
53
+ "ConstructorResult"
54
+ ],
55
+ "type": 5
56
+ },
57
+ "selector": "0x9bae9d5e"
58
+ }
59
+ ],
60
+ "docs": [],
61
+ "environment": {
62
+ "accountId": {
63
+ "displayName": [
64
+ "AccountId"
65
+ ],
66
+ "type": 1
67
+ },
68
+ "balance": {
69
+ "displayName": [
70
+ "Balance"
71
+ ],
72
+ "type": 0
73
+ },
74
+ "blockNumber": {
75
+ "displayName": [
76
+ "BlockNumber"
77
+ ],
78
+ "type": 25
79
+ },
80
+ "chainExtension": {
81
+ "displayName": [
82
+ "ChainExtension"
83
+ ],
84
+ "type": 26
85
+ },
86
+ "hash": {
87
+ "displayName": [
88
+ "Hash"
89
+ ],
90
+ "type": 24
91
+ },
92
+ "maxEventTopics": 4,
93
+ "timestamp": {
94
+ "displayName": [
95
+ "Timestamp"
96
+ ],
97
+ "type": 4
98
+ }
99
+ },
100
+ "events": [],
101
+ "lang_error": {
102
+ "displayName": [
103
+ "ink",
104
+ "LangError"
105
+ ],
106
+ "type": 7
107
+ },
108
+ "messages": [
109
+ {
110
+ "args": [
111
+ {
112
+ "label": "new_main",
113
+ "type": {
114
+ "displayName": [
115
+ "AccountId"
116
+ ],
117
+ "type": 1
118
+ }
119
+ }
120
+ ],
121
+ "default": false,
122
+ "docs": [],
123
+ "label": "change_main",
124
+ "mutates": true,
125
+ "payable": false,
126
+ "returnType": {
127
+ "displayName": [
128
+ "ink",
129
+ "MessageResult"
130
+ ],
131
+ "type": 8
132
+ },
133
+ "selector": "0x6cfbbb35"
134
+ },
135
+ {
136
+ "args": [
137
+ {
138
+ "label": "new_day_milliseconds",
139
+ "type": {
140
+ "displayName": [
141
+ "Timestamp"
142
+ ],
143
+ "type": 4
144
+ }
145
+ }
146
+ ],
147
+ "default": false,
148
+ "docs": [],
149
+ "label": "set_day_milliseconds",
150
+ "mutates": true,
151
+ "payable": false,
152
+ "returnType": {
153
+ "displayName": [
154
+ "ink",
155
+ "MessageResult"
156
+ ],
157
+ "type": 8
158
+ },
159
+ "selector": "0x57d2bc7f"
160
+ },
161
+ {
162
+ "args": [
163
+ {
164
+ "label": "account_id",
165
+ "type": {
166
+ "displayName": [
167
+ "AccountId"
168
+ ],
169
+ "type": 1
170
+ }
171
+ }
172
+ ],
173
+ "default": false,
174
+ "docs": [],
175
+ "label": "get_account",
176
+ "mutates": false,
177
+ "payable": false,
178
+ "returnType": {
179
+ "displayName": [
180
+ "ink",
181
+ "MessageResult"
182
+ ],
183
+ "type": 11
184
+ },
185
+ "selector": "0xd0f48683"
186
+ },
187
+ {
188
+ "args": [
189
+ {
190
+ "label": "account_id",
191
+ "type": {
192
+ "displayName": [
193
+ "AccountId"
194
+ ],
195
+ "type": 1
196
+ }
197
+ },
198
+ {
199
+ "label": "burn_amount",
200
+ "type": {
201
+ "displayName": [
202
+ "Balance"
203
+ ],
204
+ "type": 0
205
+ }
206
+ }
207
+ ],
208
+ "default": false,
209
+ "docs": [
210
+ " burn funcion callable by ownly master contract",
211
+ "",
212
+ " does the necessary checks then calls the internal burn function `_burn`"
213
+ ],
214
+ "label": "initiate_burn",
215
+ "mutates": true,
216
+ "payable": false,
217
+ "returnType": {
218
+ "displayName": [
219
+ "ink",
220
+ "MessageResult"
221
+ ],
222
+ "type": 16
223
+ },
224
+ "selector": "0x34aff0a0"
225
+ },
226
+ {
227
+ "args": [
228
+ {
229
+ "label": "account_id",
230
+ "type": {
231
+ "displayName": [
232
+ "AccountId"
233
+ ],
234
+ "type": 1
235
+ }
236
+ }
237
+ ],
238
+ "default": false,
239
+ "docs": [
240
+ " calculate values to be used by the burn manager"
241
+ ],
242
+ "label": "prepare_withdrawal",
243
+ "mutates": true,
244
+ "payable": false,
245
+ "returnType": {
246
+ "displayName": [
247
+ "ink",
248
+ "MessageResult"
249
+ ],
250
+ "type": 18
251
+ },
252
+ "selector": "0x9c2e384b"
253
+ },
254
+ {
255
+ "args": [
256
+ {
257
+ "label": "account_id",
258
+ "type": {
259
+ "displayName": [
260
+ "AccountId"
261
+ ],
262
+ "type": 1
263
+ }
264
+ }
265
+ ],
266
+ "default": false,
267
+ "docs": [],
268
+ "label": "get_ancestors",
269
+ "mutates": false,
270
+ "payable": false,
271
+ "returnType": {
272
+ "displayName": [
273
+ "ink",
274
+ "MessageResult"
275
+ ],
276
+ "type": 21
277
+ },
278
+ "selector": "0xe2ee2364"
279
+ },
280
+ {
281
+ "args": [
282
+ {
283
+ "label": "user",
284
+ "type": {
285
+ "displayName": [
286
+ "AccountId"
287
+ ],
288
+ "type": 1
289
+ }
290
+ },
291
+ {
292
+ "label": "amount_burned",
293
+ "type": {
294
+ "displayName": [
295
+ "Balance"
296
+ ],
297
+ "type": 0
298
+ }
299
+ }
300
+ ],
301
+ "default": false,
302
+ "docs": [],
303
+ "label": "update_data",
304
+ "mutates": true,
305
+ "payable": false,
306
+ "returnType": {
307
+ "displayName": [
308
+ "ink",
309
+ "MessageResult"
310
+ ],
311
+ "type": 8
312
+ },
313
+ "selector": "0x0590a9a1"
314
+ },
315
+ {
316
+ "args": [
317
+ {
318
+ "label": "code_hash",
319
+ "type": {
320
+ "displayName": [],
321
+ "type": 2
322
+ }
323
+ }
324
+ ],
325
+ "default": false,
326
+ "docs": [
327
+ " Modifies the code which is used to execute calls to this contract address (`AccountId`).",
328
+ "",
329
+ " We use this to upgrade the contract logic. We don't do any authorization here, any caller",
330
+ " can execute this method. In a production contract you would do some authorization here."
331
+ ],
332
+ "label": "set_code",
333
+ "mutates": true,
334
+ "payable": false,
335
+ "returnType": {
336
+ "displayName": [
337
+ "ink",
338
+ "MessageResult"
339
+ ],
340
+ "type": 5
341
+ },
342
+ "selector": "0x694fb50f"
343
+ }
344
+ ]
345
+ },
346
+ "storage": {
347
+ "root": {
348
+ "layout": {
349
+ "struct": {
350
+ "fields": [
351
+ {
352
+ "layout": {
353
+ "leaf": {
354
+ "key": "0x00000000",
355
+ "ty": 0
356
+ }
357
+ },
358
+ "name": "total_amount_burned"
359
+ },
360
+ {
361
+ "layout": {
362
+ "leaf": {
363
+ "key": "0x00000000",
364
+ "ty": 1
365
+ }
366
+ },
367
+ "name": "main_pool"
368
+ },
369
+ {
370
+ "layout": {
371
+ "root": {
372
+ "layout": {
373
+ "struct": {
374
+ "fields": [
375
+ {
376
+ "layout": {
377
+ "leaf": {
378
+ "key": "0x125717b1",
379
+ "ty": 4
380
+ }
381
+ },
382
+ "name": "creation_timestamp"
383
+ },
384
+ {
385
+ "layout": {
386
+ "leaf": {
387
+ "key": "0x125717b1",
388
+ "ty": 0
389
+ }
390
+ },
391
+ "name": "amount_burned"
392
+ },
393
+ {
394
+ "layout": {
395
+ "leaf": {
396
+ "key": "0x125717b1",
397
+ "ty": 0
398
+ }
399
+ },
400
+ "name": "balance_due"
401
+ },
402
+ {
403
+ "layout": {
404
+ "leaf": {
405
+ "key": "0x125717b1",
406
+ "ty": 0
407
+ }
408
+ },
409
+ "name": "balance_paid"
410
+ },
411
+ {
412
+ "layout": {
413
+ "enum": {
414
+ "dispatchKey": "0x125717b1",
415
+ "name": "Option",
416
+ "variants": {
417
+ "0": {
418
+ "fields": [],
419
+ "name": "None"
420
+ },
421
+ "1": {
422
+ "fields": [
423
+ {
424
+ "layout": {
425
+ "leaf": {
426
+ "key": "0x125717b1",
427
+ "ty": 4
428
+ }
429
+ },
430
+ "name": "0"
431
+ }
432
+ ],
433
+ "name": "Some"
434
+ }
435
+ }
436
+ }
437
+ },
438
+ "name": "last_withdrawal"
439
+ },
440
+ {
441
+ "layout": {
442
+ "leaf": {
443
+ "key": "0x125717b1",
444
+ "ty": 4
445
+ }
446
+ },
447
+ "name": "last_burn"
448
+ },
449
+ {
450
+ "layout": {
451
+ "struct": {
452
+ "fields": [
453
+ {
454
+ "layout": {
455
+ "leaf": {
456
+ "key": "0x125717b1",
457
+ "ty": 0
458
+ }
459
+ },
460
+ "name": "0"
461
+ },
462
+ {
463
+ "layout": {
464
+ "leaf": {
465
+ "key": "0x125717b1",
466
+ "ty": 0
467
+ }
468
+ },
469
+ "name": "1"
470
+ }
471
+ ],
472
+ "name": "(A, B)"
473
+ }
474
+ },
475
+ "name": "referral_boost_coefficients"
476
+ },
477
+ {
478
+ "layout": {
479
+ "leaf": {
480
+ "key": "0x125717b1",
481
+ "ty": 4
482
+ }
483
+ },
484
+ "name": "last_interaction"
485
+ }
486
+ ],
487
+ "name": "Account"
488
+ }
489
+ },
490
+ "root_key": "0x125717b1"
491
+ }
492
+ },
493
+ "name": "accounts"
494
+ },
495
+ {
496
+ "layout": {
497
+ "leaf": {
498
+ "key": "0x00000000",
499
+ "ty": 0
500
+ }
501
+ },
502
+ "name": "burn_minimum"
503
+ },
504
+ {
505
+ "layout": {
506
+ "leaf": {
507
+ "key": "0x00000000",
508
+ "ty": 4
509
+ }
510
+ },
511
+ "name": "day_milliseconds"
512
+ },
513
+ {
514
+ "layout": {
515
+ "leaf": {
516
+ "key": "0x00000000",
517
+ "ty": 1
518
+ }
519
+ },
520
+ "name": "admin"
521
+ }
522
+ ],
523
+ "name": "D9burnMining"
524
+ }
525
+ },
526
+ "root_key": "0x00000000"
527
+ }
528
+ },
529
+ "types": [
530
+ {
531
+ "id": 0,
532
+ "type": {
533
+ "def": {
534
+ "primitive": "u128"
535
+ }
536
+ }
537
+ },
538
+ {
539
+ "id": 1,
540
+ "type": {
541
+ "def": {
542
+ "composite": {
543
+ "fields": [
544
+ {
545
+ "type": 2,
546
+ "typeName": "[u8; 32]"
547
+ }
548
+ ]
549
+ }
550
+ },
551
+ "path": [
552
+ "ink_primitives",
553
+ "types",
554
+ "AccountId"
555
+ ]
556
+ }
557
+ },
558
+ {
559
+ "id": 2,
560
+ "type": {
561
+ "def": {
562
+ "array": {
563
+ "len": 32,
564
+ "type": 3
565
+ }
566
+ }
567
+ }
568
+ },
569
+ {
570
+ "id": 3,
571
+ "type": {
572
+ "def": {
573
+ "primitive": "u8"
574
+ }
575
+ }
576
+ },
577
+ {
578
+ "id": 4,
579
+ "type": {
580
+ "def": {
581
+ "primitive": "u64"
582
+ }
583
+ }
584
+ },
585
+ {
586
+ "id": 5,
587
+ "type": {
588
+ "def": {
589
+ "variant": {
590
+ "variants": [
591
+ {
592
+ "fields": [
593
+ {
594
+ "type": 6
595
+ }
596
+ ],
597
+ "index": 0,
598
+ "name": "Ok"
599
+ },
600
+ {
601
+ "fields": [
602
+ {
603
+ "type": 7
604
+ }
605
+ ],
606
+ "index": 1,
607
+ "name": "Err"
608
+ }
609
+ ]
610
+ }
611
+ },
612
+ "params": [
613
+ {
614
+ "name": "T",
615
+ "type": 6
616
+ },
617
+ {
618
+ "name": "E",
619
+ "type": 7
620
+ }
621
+ ],
622
+ "path": [
623
+ "Result"
624
+ ]
625
+ }
626
+ },
627
+ {
628
+ "id": 6,
629
+ "type": {
630
+ "def": {
631
+ "tuple": []
632
+ }
633
+ }
634
+ },
635
+ {
636
+ "id": 7,
637
+ "type": {
638
+ "def": {
639
+ "variant": {
640
+ "variants": [
641
+ {
642
+ "index": 1,
643
+ "name": "CouldNotReadInput"
644
+ }
645
+ ]
646
+ }
647
+ },
648
+ "path": [
649
+ "ink_primitives",
650
+ "LangError"
651
+ ]
652
+ }
653
+ },
654
+ {
655
+ "id": 8,
656
+ "type": {
657
+ "def": {
658
+ "variant": {
659
+ "variants": [
660
+ {
661
+ "fields": [
662
+ {
663
+ "type": 9
664
+ }
665
+ ],
666
+ "index": 0,
667
+ "name": "Ok"
668
+ },
669
+ {
670
+ "fields": [
671
+ {
672
+ "type": 7
673
+ }
674
+ ],
675
+ "index": 1,
676
+ "name": "Err"
677
+ }
678
+ ]
679
+ }
680
+ },
681
+ "params": [
682
+ {
683
+ "name": "T",
684
+ "type": 9
685
+ },
686
+ {
687
+ "name": "E",
688
+ "type": 7
689
+ }
690
+ ],
691
+ "path": [
692
+ "Result"
693
+ ]
694
+ }
695
+ },
696
+ {
697
+ "id": 9,
698
+ "type": {
699
+ "def": {
700
+ "variant": {
701
+ "variants": [
702
+ {
703
+ "fields": [
704
+ {
705
+ "type": 6
706
+ }
707
+ ],
708
+ "index": 0,
709
+ "name": "Ok"
710
+ },
711
+ {
712
+ "fields": [
713
+ {
714
+ "type": 10
715
+ }
716
+ ],
717
+ "index": 1,
718
+ "name": "Err"
719
+ }
720
+ ]
721
+ }
722
+ },
723
+ "params": [
724
+ {
725
+ "name": "T",
726
+ "type": 6
727
+ },
728
+ {
729
+ "name": "E",
730
+ "type": 10
731
+ }
732
+ ],
733
+ "path": [
734
+ "Result"
735
+ ]
736
+ }
737
+ },
738
+ {
739
+ "id": 10,
740
+ "type": {
741
+ "def": {
742
+ "variant": {
743
+ "variants": [
744
+ {
745
+ "index": 0,
746
+ "name": "BurnAmountInsufficient"
747
+ },
748
+ {
749
+ "index": 1,
750
+ "name": "NoAccountFound"
751
+ },
752
+ {
753
+ "index": 2,
754
+ "name": "EarlyWithdrawalAttempt"
755
+ },
756
+ {
757
+ "index": 3,
758
+ "name": "ContractBalanceTooLow"
759
+ },
760
+ {
761
+ "index": 4,
762
+ "name": "RestrictedFunction"
763
+ },
764
+ {
765
+ "index": 5,
766
+ "name": "UsePortfolioExecuteFunction"
767
+ },
768
+ {
769
+ "index": 6,
770
+ "name": "WithdrawalExceedsBalance"
771
+ },
772
+ {
773
+ "index": 7,
774
+ "name": "TransferFailed"
775
+ },
776
+ {
777
+ "index": 8,
778
+ "name": "InvalidCaller"
779
+ },
780
+ {
781
+ "index": 9,
782
+ "name": "InvalidBurnContract"
783
+ },
784
+ {
785
+ "index": 10,
786
+ "name": "BurnContractAlreadyAdded"
787
+ },
788
+ {
789
+ "index": 11,
790
+ "name": "BurnAmountNotMultipleOf100"
791
+ },
792
+ {
793
+ "index": 12,
794
+ "name": "CrossContractCallFailed"
795
+ },
796
+ {
797
+ "index": 13,
798
+ "name": "WithdrawalNotAllowed"
799
+ },
800
+ {
801
+ "index": 14,
802
+ "name": "WithdrawalAmountZero"
803
+ },
804
+ {
805
+ "index": 15,
806
+ "name": "RuntimeErrorGettingAncestors"
807
+ },
808
+ {
809
+ "index": 16,
810
+ "name": "NoAncestorsFound"
811
+ },
812
+ {
813
+ "index": 17,
814
+ "name": "MustBeMultipleOf100"
815
+ },
816
+ {
817
+ "index": 18,
818
+ "name": "RemoteCallToBurnContractFailed"
819
+ },
820
+ {
821
+ "index": 19,
822
+ "name": "RemoteCallToMiningPoolFailed"
823
+ },
824
+ {
825
+ "index": 20,
826
+ "name": "SomeEnvironmentError"
827
+ },
828
+ {
829
+ "index": 21,
830
+ "name": "CalledContractTrapped"
831
+ },
832
+ {
833
+ "index": 22,
834
+ "name": "CalledContractReverted"
835
+ },
836
+ {
837
+ "index": 23,
838
+ "name": "NotCallable"
839
+ },
840
+ {
841
+ "index": 24,
842
+ "name": "SomeDecodeError"
843
+ },
844
+ {
845
+ "index": 25,
846
+ "name": "SomeOffChainError"
847
+ },
848
+ {
849
+ "index": 26,
850
+ "name": "CalleeTrapped"
851
+ },
852
+ {
853
+ "index": 27,
854
+ "name": "CalleeReverted"
855
+ },
856
+ {
857
+ "index": 28,
858
+ "name": "KeyNotFound"
859
+ },
860
+ {
861
+ "index": 29,
862
+ "name": "_BelowSubsistenceThreshold"
863
+ },
864
+ {
865
+ "index": 30,
866
+ "name": "EnvironmentalTransferFailed"
867
+ },
868
+ {
869
+ "index": 31,
870
+ "name": "_EndowmentTooLow"
871
+ },
872
+ {
873
+ "index": 32,
874
+ "name": "CodeNotFound"
875
+ },
876
+ {
877
+ "index": 33,
878
+ "name": "Unknown"
879
+ },
880
+ {
881
+ "index": 34,
882
+ "name": "LoggingDisabled"
883
+ },
884
+ {
885
+ "index": 35,
886
+ "name": "CallRuntimeFailed"
887
+ },
888
+ {
889
+ "index": 36,
890
+ "name": "EcdsaRecoveryFailed"
891
+ },
892
+ {
893
+ "index": 37,
894
+ "name": "WithdrawalAmountExceedsBalance"
895
+ }
896
+ ]
897
+ }
898
+ },
899
+ "path": [
900
+ "d9_burn_common",
901
+ "Error"
902
+ ]
903
+ }
904
+ },
905
+ {
906
+ "id": 11,
907
+ "type": {
908
+ "def": {
909
+ "variant": {
910
+ "variants": [
911
+ {
912
+ "fields": [
913
+ {
914
+ "type": 12
915
+ }
916
+ ],
917
+ "index": 0,
918
+ "name": "Ok"
919
+ },
920
+ {
921
+ "fields": [
922
+ {
923
+ "type": 7
924
+ }
925
+ ],
926
+ "index": 1,
927
+ "name": "Err"
928
+ }
929
+ ]
930
+ }
931
+ },
932
+ "params": [
933
+ {
934
+ "name": "T",
935
+ "type": 12
936
+ },
937
+ {
938
+ "name": "E",
939
+ "type": 7
940
+ }
941
+ ],
942
+ "path": [
943
+ "Result"
944
+ ]
945
+ }
946
+ },
947
+ {
948
+ "id": 12,
949
+ "type": {
950
+ "def": {
951
+ "variant": {
952
+ "variants": [
953
+ {
954
+ "index": 0,
955
+ "name": "None"
956
+ },
957
+ {
958
+ "fields": [
959
+ {
960
+ "type": 13
961
+ }
962
+ ],
963
+ "index": 1,
964
+ "name": "Some"
965
+ }
966
+ ]
967
+ }
968
+ },
969
+ "params": [
970
+ {
971
+ "name": "T",
972
+ "type": 13
973
+ }
974
+ ],
975
+ "path": [
976
+ "Option"
977
+ ]
978
+ }
979
+ },
980
+ {
981
+ "id": 13,
982
+ "type": {
983
+ "def": {
984
+ "composite": {
985
+ "fields": [
986
+ {
987
+ "name": "creation_timestamp",
988
+ "type": 4,
989
+ "typeName": "Timestamp"
990
+ },
991
+ {
992
+ "name": "amount_burned",
993
+ "type": 0,
994
+ "typeName": "Balance"
995
+ },
996
+ {
997
+ "name": "balance_due",
998
+ "type": 0,
999
+ "typeName": "Balance"
1000
+ },
1001
+ {
1002
+ "name": "balance_paid",
1003
+ "type": 0,
1004
+ "typeName": "Balance"
1005
+ },
1006
+ {
1007
+ "name": "last_withdrawal",
1008
+ "type": 14,
1009
+ "typeName": "Option<Timestamp>"
1010
+ },
1011
+ {
1012
+ "name": "last_burn",
1013
+ "type": 4,
1014
+ "typeName": "Timestamp"
1015
+ },
1016
+ {
1017
+ "name": "referral_boost_coefficients",
1018
+ "type": 15,
1019
+ "typeName": "(Balance, Balance)"
1020
+ },
1021
+ {
1022
+ "name": "last_interaction",
1023
+ "type": 4,
1024
+ "typeName": "Timestamp"
1025
+ }
1026
+ ]
1027
+ }
1028
+ },
1029
+ "path": [
1030
+ "d9_burn_common",
1031
+ "Account"
1032
+ ]
1033
+ }
1034
+ },
1035
+ {
1036
+ "id": 14,
1037
+ "type": {
1038
+ "def": {
1039
+ "variant": {
1040
+ "variants": [
1041
+ {
1042
+ "index": 0,
1043
+ "name": "None"
1044
+ },
1045
+ {
1046
+ "fields": [
1047
+ {
1048
+ "type": 4
1049
+ }
1050
+ ],
1051
+ "index": 1,
1052
+ "name": "Some"
1053
+ }
1054
+ ]
1055
+ }
1056
+ },
1057
+ "params": [
1058
+ {
1059
+ "name": "T",
1060
+ "type": 4
1061
+ }
1062
+ ],
1063
+ "path": [
1064
+ "Option"
1065
+ ]
1066
+ }
1067
+ },
1068
+ {
1069
+ "id": 15,
1070
+ "type": {
1071
+ "def": {
1072
+ "tuple": [
1073
+ 0,
1074
+ 0
1075
+ ]
1076
+ }
1077
+ }
1078
+ },
1079
+ {
1080
+ "id": 16,
1081
+ "type": {
1082
+ "def": {
1083
+ "variant": {
1084
+ "variants": [
1085
+ {
1086
+ "fields": [
1087
+ {
1088
+ "type": 17
1089
+ }
1090
+ ],
1091
+ "index": 0,
1092
+ "name": "Ok"
1093
+ },
1094
+ {
1095
+ "fields": [
1096
+ {
1097
+ "type": 7
1098
+ }
1099
+ ],
1100
+ "index": 1,
1101
+ "name": "Err"
1102
+ }
1103
+ ]
1104
+ }
1105
+ },
1106
+ "params": [
1107
+ {
1108
+ "name": "T",
1109
+ "type": 17
1110
+ },
1111
+ {
1112
+ "name": "E",
1113
+ "type": 7
1114
+ }
1115
+ ],
1116
+ "path": [
1117
+ "Result"
1118
+ ]
1119
+ }
1120
+ },
1121
+ {
1122
+ "id": 17,
1123
+ "type": {
1124
+ "def": {
1125
+ "variant": {
1126
+ "variants": [
1127
+ {
1128
+ "fields": [
1129
+ {
1130
+ "type": 0
1131
+ }
1132
+ ],
1133
+ "index": 0,
1134
+ "name": "Ok"
1135
+ },
1136
+ {
1137
+ "fields": [
1138
+ {
1139
+ "type": 10
1140
+ }
1141
+ ],
1142
+ "index": 1,
1143
+ "name": "Err"
1144
+ }
1145
+ ]
1146
+ }
1147
+ },
1148
+ "params": [
1149
+ {
1150
+ "name": "T",
1151
+ "type": 0
1152
+ },
1153
+ {
1154
+ "name": "E",
1155
+ "type": 10
1156
+ }
1157
+ ],
1158
+ "path": [
1159
+ "Result"
1160
+ ]
1161
+ }
1162
+ },
1163
+ {
1164
+ "id": 18,
1165
+ "type": {
1166
+ "def": {
1167
+ "variant": {
1168
+ "variants": [
1169
+ {
1170
+ "fields": [
1171
+ {
1172
+ "type": 19
1173
+ }
1174
+ ],
1175
+ "index": 0,
1176
+ "name": "Ok"
1177
+ },
1178
+ {
1179
+ "fields": [
1180
+ {
1181
+ "type": 7
1182
+ }
1183
+ ],
1184
+ "index": 1,
1185
+ "name": "Err"
1186
+ }
1187
+ ]
1188
+ }
1189
+ },
1190
+ "params": [
1191
+ {
1192
+ "name": "T",
1193
+ "type": 19
1194
+ },
1195
+ {
1196
+ "name": "E",
1197
+ "type": 7
1198
+ }
1199
+ ],
1200
+ "path": [
1201
+ "Result"
1202
+ ]
1203
+ }
1204
+ },
1205
+ {
1206
+ "id": 19,
1207
+ "type": {
1208
+ "def": {
1209
+ "variant": {
1210
+ "variants": [
1211
+ {
1212
+ "fields": [
1213
+ {
1214
+ "type": 20
1215
+ }
1216
+ ],
1217
+ "index": 0,
1218
+ "name": "Ok"
1219
+ },
1220
+ {
1221
+ "fields": [
1222
+ {
1223
+ "type": 10
1224
+ }
1225
+ ],
1226
+ "index": 1,
1227
+ "name": "Err"
1228
+ }
1229
+ ]
1230
+ }
1231
+ },
1232
+ "params": [
1233
+ {
1234
+ "name": "T",
1235
+ "type": 20
1236
+ },
1237
+ {
1238
+ "name": "E",
1239
+ "type": 10
1240
+ }
1241
+ ],
1242
+ "path": [
1243
+ "Result"
1244
+ ]
1245
+ }
1246
+ },
1247
+ {
1248
+ "id": 20,
1249
+ "type": {
1250
+ "def": {
1251
+ "tuple": [
1252
+ 0,
1253
+ 4
1254
+ ]
1255
+ }
1256
+ }
1257
+ },
1258
+ {
1259
+ "id": 21,
1260
+ "type": {
1261
+ "def": {
1262
+ "variant": {
1263
+ "variants": [
1264
+ {
1265
+ "fields": [
1266
+ {
1267
+ "type": 22
1268
+ }
1269
+ ],
1270
+ "index": 0,
1271
+ "name": "Ok"
1272
+ },
1273
+ {
1274
+ "fields": [
1275
+ {
1276
+ "type": 7
1277
+ }
1278
+ ],
1279
+ "index": 1,
1280
+ "name": "Err"
1281
+ }
1282
+ ]
1283
+ }
1284
+ },
1285
+ "params": [
1286
+ {
1287
+ "name": "T",
1288
+ "type": 22
1289
+ },
1290
+ {
1291
+ "name": "E",
1292
+ "type": 7
1293
+ }
1294
+ ],
1295
+ "path": [
1296
+ "Result"
1297
+ ]
1298
+ }
1299
+ },
1300
+ {
1301
+ "id": 22,
1302
+ "type": {
1303
+ "def": {
1304
+ "variant": {
1305
+ "variants": [
1306
+ {
1307
+ "index": 0,
1308
+ "name": "None"
1309
+ },
1310
+ {
1311
+ "fields": [
1312
+ {
1313
+ "type": 23
1314
+ }
1315
+ ],
1316
+ "index": 1,
1317
+ "name": "Some"
1318
+ }
1319
+ ]
1320
+ }
1321
+ },
1322
+ "params": [
1323
+ {
1324
+ "name": "T",
1325
+ "type": 23
1326
+ }
1327
+ ],
1328
+ "path": [
1329
+ "Option"
1330
+ ]
1331
+ }
1332
+ },
1333
+ {
1334
+ "id": 23,
1335
+ "type": {
1336
+ "def": {
1337
+ "sequence": {
1338
+ "type": 1
1339
+ }
1340
+ }
1341
+ }
1342
+ },
1343
+ {
1344
+ "id": 24,
1345
+ "type": {
1346
+ "def": {
1347
+ "composite": {
1348
+ "fields": [
1349
+ {
1350
+ "type": 2,
1351
+ "typeName": "[u8; 32]"
1352
+ }
1353
+ ]
1354
+ }
1355
+ },
1356
+ "path": [
1357
+ "ink_primitives",
1358
+ "types",
1359
+ "Hash"
1360
+ ]
1361
+ }
1362
+ },
1363
+ {
1364
+ "id": 25,
1365
+ "type": {
1366
+ "def": {
1367
+ "primitive": "u32"
1368
+ }
1369
+ }
1370
+ },
1371
+ {
1372
+ "id": 26,
1373
+ "type": {
1374
+ "def": {
1375
+ "variant": {}
1376
+ },
1377
+ "path": [
1378
+ "d9_chain_extension",
1379
+ "D9ChainExtension"
1380
+ ]
1381
+ }
1382
+ }
1383
+ ],
1384
+ "version": "4"
1385
+ }