kira-wallet 0.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.
Files changed (58) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +116 -0
  3. package/THIRD_PARTY_NOTICES.md +13 -0
  4. package/bin/kira.cjs +8 -0
  5. package/curve_pricing.py +86 -0
  6. package/docs/AGENT_TOOLS.md +53 -0
  7. package/docs/CLI.md +144 -0
  8. package/docs/JOB_CONTRACT.md +111 -0
  9. package/docs/KIRA_JOBS_BUILD_REPORT.md +92 -0
  10. package/docs/KIRA_REDESIGN_REPORT.md +125 -0
  11. package/docs/ONBOARDING_CHAT_CONTRACT.md +36 -0
  12. package/docs/RELEASE.md +45 -0
  13. package/docs/WALLET_CAPABILITIES.md +98 -0
  14. package/docs/character/brand-generation.json +20 -0
  15. package/docs/character/workspace-generation.json +29 -0
  16. package/docs/screenshots/kira-jobs-desktop.jpg +0 -0
  17. package/kira_agent.py +280 -0
  18. package/kira_cli.py +263 -0
  19. package/kira_config.py +98 -0
  20. package/kira_jobs.py +504 -0
  21. package/kira_tools.py +104 -0
  22. package/networks.json +214 -0
  23. package/onchain.cjs +34 -0
  24. package/package.json +78 -0
  25. package/pipeline-onchain.cjs +284 -0
  26. package/research.py +39 -0
  27. package/sources/job-envelope-v1.schema.json +469 -0
  28. package/sources/job-request-v1.schema.json +352 -0
  29. package/sources/mintclub-bond-abi.json +1457 -0
  30. package/sources/rpc-candidates.json +294 -0
  31. package/sources/uniswap-deployments.json +18261 -0
  32. package/viewer/README.md +119 -0
  33. package/viewer/chain_images.py +21 -0
  34. package/viewer/details.py +119 -0
  35. package/viewer/model.py +216 -0
  36. package/viewer/refresh-curve-prices.cjs +35 -0
  37. package/viewer/refresh_prices.py +97 -0
  38. package/viewer/server.py +153 -0
  39. package/viewer/static/agent.css +100 -0
  40. package/viewer/static/agent.js +203 -0
  41. package/viewer/static/app.js +252 -0
  42. package/viewer/static/favicon.svg +1 -0
  43. package/viewer/static/index.html +139 -0
  44. package/viewer/static/jobs.js +113 -0
  45. package/viewer/static/kira-attention.png +0 -0
  46. package/viewer/static/kira-explain.png +0 -0
  47. package/viewer/static/kira-logo.png +0 -0
  48. package/viewer/static/kira-research.png +0 -0
  49. package/viewer/static/kira-review.png +0 -0
  50. package/viewer/static/kira.png +0 -0
  51. package/viewer/static/style.css +51 -0
  52. package/viewer/static/watching-model.js +129 -0
  53. package/viewer/static/watching.js +167 -0
  54. package/viewer/static/workspace-model.js +43 -0
  55. package/viewer/static/workspace.css +463 -0
  56. package/viewer/static/workspace.js +102 -0
  57. package/viewer/token_images.py +137 -0
  58. package/wallet.py +389 -0
@@ -0,0 +1,1457 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "tokenImplementation",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "address",
11
+ "name": "multiTokenImplementation",
12
+ "type": "address"
13
+ },
14
+ {
15
+ "internalType": "address",
16
+ "name": "protocolBeneficiary_",
17
+ "type": "address"
18
+ },
19
+ {
20
+ "internalType": "uint256",
21
+ "name": "creationFee_",
22
+ "type": "uint256"
23
+ },
24
+ {
25
+ "internalType": "uint256",
26
+ "name": "maxSteps",
27
+ "type": "uint256"
28
+ }
29
+ ],
30
+ "stateMutability": "nonpayable",
31
+ "type": "constructor"
32
+ },
33
+ {
34
+ "inputs": [
35
+ {
36
+ "internalType": "address",
37
+ "name": "target",
38
+ "type": "address"
39
+ }
40
+ ],
41
+ "name": "AddressEmptyCode",
42
+ "type": "error"
43
+ },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "internalType": "address",
48
+ "name": "account",
49
+ "type": "address"
50
+ }
51
+ ],
52
+ "name": "AddressInsufficientBalance",
53
+ "type": "error"
54
+ },
55
+ {
56
+ "inputs": [],
57
+ "name": "ERC1167FailedCreateClone",
58
+ "type": "error"
59
+ },
60
+ {
61
+ "inputs": [],
62
+ "name": "FailedInnerCall",
63
+ "type": "error"
64
+ },
65
+ {
66
+ "inputs": [],
67
+ "name": "MCV2_BOND__InvalidPaginationParameters",
68
+ "type": "error"
69
+ },
70
+ {
71
+ "inputs": [],
72
+ "name": "MCV2_Bond__CreationFeeTransactionFailed",
73
+ "type": "error"
74
+ },
75
+ {
76
+ "inputs": [],
77
+ "name": "MCV2_Bond__ExceedMaxSupply",
78
+ "type": "error"
79
+ },
80
+ {
81
+ "inputs": [],
82
+ "name": "MCV2_Bond__ExceedTotalSupply",
83
+ "type": "error"
84
+ },
85
+ {
86
+ "inputs": [
87
+ {
88
+ "internalType": "string",
89
+ "name": "reason",
90
+ "type": "string"
91
+ }
92
+ ],
93
+ "name": "MCV2_Bond__InvalidConstructorParams",
94
+ "type": "error"
95
+ },
96
+ {
97
+ "inputs": [],
98
+ "name": "MCV2_Bond__InvalidCreationFee",
99
+ "type": "error"
100
+ },
101
+ {
102
+ "inputs": [],
103
+ "name": "MCV2_Bond__InvalidCreatorAddress",
104
+ "type": "error"
105
+ },
106
+ {
107
+ "inputs": [],
108
+ "name": "MCV2_Bond__InvalidCurrentSupply",
109
+ "type": "error"
110
+ },
111
+ {
112
+ "inputs": [],
113
+ "name": "MCV2_Bond__InvalidReceiver",
114
+ "type": "error"
115
+ },
116
+ {
117
+ "inputs": [
118
+ {
119
+ "internalType": "string",
120
+ "name": "reason",
121
+ "type": "string"
122
+ }
123
+ ],
124
+ "name": "MCV2_Bond__InvalidReserveToken",
125
+ "type": "error"
126
+ },
127
+ {
128
+ "inputs": [
129
+ {
130
+ "internalType": "string",
131
+ "name": "reason",
132
+ "type": "string"
133
+ }
134
+ ],
135
+ "name": "MCV2_Bond__InvalidStepParams",
136
+ "type": "error"
137
+ },
138
+ {
139
+ "inputs": [],
140
+ "name": "MCV2_Bond__InvalidTokenAmount",
141
+ "type": "error"
142
+ },
143
+ {
144
+ "inputs": [
145
+ {
146
+ "internalType": "string",
147
+ "name": "reason",
148
+ "type": "string"
149
+ }
150
+ ],
151
+ "name": "MCV2_Bond__InvalidTokenCreationParams",
152
+ "type": "error"
153
+ },
154
+ {
155
+ "inputs": [],
156
+ "name": "MCV2_Bond__PermissionDenied",
157
+ "type": "error"
158
+ },
159
+ {
160
+ "inputs": [],
161
+ "name": "MCV2_Bond__SlippageLimitExceeded",
162
+ "type": "error"
163
+ },
164
+ {
165
+ "inputs": [],
166
+ "name": "MCV2_Bond__TokenNotFound",
167
+ "type": "error"
168
+ },
169
+ {
170
+ "inputs": [],
171
+ "name": "MCV2_Bond__TokenSymbolAlreadyExists",
172
+ "type": "error"
173
+ },
174
+ {
175
+ "inputs": [],
176
+ "name": "MCV2_Royalty__InvalidParams",
177
+ "type": "error"
178
+ },
179
+ {
180
+ "inputs": [],
181
+ "name": "MCV2_Royalty__NothingToClaim",
182
+ "type": "error"
183
+ },
184
+ {
185
+ "inputs": [
186
+ {
187
+ "internalType": "address",
188
+ "name": "owner",
189
+ "type": "address"
190
+ }
191
+ ],
192
+ "name": "OwnableInvalidOwner",
193
+ "type": "error"
194
+ },
195
+ {
196
+ "inputs": [
197
+ {
198
+ "internalType": "address",
199
+ "name": "account",
200
+ "type": "address"
201
+ }
202
+ ],
203
+ "name": "OwnableUnauthorizedAccount",
204
+ "type": "error"
205
+ },
206
+ {
207
+ "inputs": [
208
+ {
209
+ "internalType": "uint8",
210
+ "name": "bits",
211
+ "type": "uint8"
212
+ },
213
+ {
214
+ "internalType": "uint256",
215
+ "name": "value",
216
+ "type": "uint256"
217
+ }
218
+ ],
219
+ "name": "SafeCastOverflowedUintDowncast",
220
+ "type": "error"
221
+ },
222
+ {
223
+ "inputs": [
224
+ {
225
+ "internalType": "address",
226
+ "name": "token",
227
+ "type": "address"
228
+ }
229
+ ],
230
+ "name": "SafeERC20FailedOperation",
231
+ "type": "error"
232
+ },
233
+ {
234
+ "anonymous": false,
235
+ "inputs": [
236
+ {
237
+ "indexed": true,
238
+ "internalType": "address",
239
+ "name": "token",
240
+ "type": "address"
241
+ },
242
+ {
243
+ "indexed": true,
244
+ "internalType": "address",
245
+ "name": "creator",
246
+ "type": "address"
247
+ }
248
+ ],
249
+ "name": "BondCreatorUpdated",
250
+ "type": "event"
251
+ },
252
+ {
253
+ "anonymous": false,
254
+ "inputs": [
255
+ {
256
+ "indexed": true,
257
+ "internalType": "address",
258
+ "name": "token",
259
+ "type": "address"
260
+ },
261
+ {
262
+ "indexed": true,
263
+ "internalType": "address",
264
+ "name": "user",
265
+ "type": "address"
266
+ },
267
+ {
268
+ "indexed": false,
269
+ "internalType": "address",
270
+ "name": "receiver",
271
+ "type": "address"
272
+ },
273
+ {
274
+ "indexed": false,
275
+ "internalType": "uint256",
276
+ "name": "amountBurned",
277
+ "type": "uint256"
278
+ },
279
+ {
280
+ "indexed": true,
281
+ "internalType": "address",
282
+ "name": "reserveToken",
283
+ "type": "address"
284
+ },
285
+ {
286
+ "indexed": false,
287
+ "internalType": "uint256",
288
+ "name": "refundAmount",
289
+ "type": "uint256"
290
+ }
291
+ ],
292
+ "name": "Burn",
293
+ "type": "event"
294
+ },
295
+ {
296
+ "anonymous": false,
297
+ "inputs": [
298
+ {
299
+ "indexed": false,
300
+ "internalType": "uint256",
301
+ "name": "amount",
302
+ "type": "uint256"
303
+ }
304
+ ],
305
+ "name": "CreationFeeUpdated",
306
+ "type": "event"
307
+ },
308
+ {
309
+ "anonymous": false,
310
+ "inputs": [
311
+ {
312
+ "indexed": true,
313
+ "internalType": "address",
314
+ "name": "token",
315
+ "type": "address"
316
+ },
317
+ {
318
+ "indexed": true,
319
+ "internalType": "address",
320
+ "name": "user",
321
+ "type": "address"
322
+ },
323
+ {
324
+ "indexed": false,
325
+ "internalType": "address",
326
+ "name": "receiver",
327
+ "type": "address"
328
+ },
329
+ {
330
+ "indexed": false,
331
+ "internalType": "uint256",
332
+ "name": "amountMinted",
333
+ "type": "uint256"
334
+ },
335
+ {
336
+ "indexed": true,
337
+ "internalType": "address",
338
+ "name": "reserveToken",
339
+ "type": "address"
340
+ },
341
+ {
342
+ "indexed": false,
343
+ "internalType": "uint256",
344
+ "name": "reserveAmount",
345
+ "type": "uint256"
346
+ }
347
+ ],
348
+ "name": "Mint",
349
+ "type": "event"
350
+ },
351
+ {
352
+ "anonymous": false,
353
+ "inputs": [
354
+ {
355
+ "indexed": true,
356
+ "internalType": "address",
357
+ "name": "token",
358
+ "type": "address"
359
+ },
360
+ {
361
+ "indexed": false,
362
+ "internalType": "string",
363
+ "name": "name",
364
+ "type": "string"
365
+ },
366
+ {
367
+ "indexed": false,
368
+ "internalType": "string",
369
+ "name": "symbol",
370
+ "type": "string"
371
+ },
372
+ {
373
+ "indexed": false,
374
+ "internalType": "string",
375
+ "name": "uri",
376
+ "type": "string"
377
+ },
378
+ {
379
+ "indexed": true,
380
+ "internalType": "address",
381
+ "name": "reserveToken",
382
+ "type": "address"
383
+ }
384
+ ],
385
+ "name": "MultiTokenCreated",
386
+ "type": "event"
387
+ },
388
+ {
389
+ "anonymous": false,
390
+ "inputs": [
391
+ {
392
+ "indexed": true,
393
+ "internalType": "address",
394
+ "name": "previousOwner",
395
+ "type": "address"
396
+ },
397
+ {
398
+ "indexed": true,
399
+ "internalType": "address",
400
+ "name": "newOwner",
401
+ "type": "address"
402
+ }
403
+ ],
404
+ "name": "OwnershipTransferred",
405
+ "type": "event"
406
+ },
407
+ {
408
+ "anonymous": false,
409
+ "inputs": [
410
+ {
411
+ "indexed": false,
412
+ "internalType": "address",
413
+ "name": "protocolBeneficiary",
414
+ "type": "address"
415
+ }
416
+ ],
417
+ "name": "ProtocolBeneficiaryUpdated",
418
+ "type": "event"
419
+ },
420
+ {
421
+ "anonymous": false,
422
+ "inputs": [
423
+ {
424
+ "indexed": true,
425
+ "internalType": "address",
426
+ "name": "user",
427
+ "type": "address"
428
+ },
429
+ {
430
+ "indexed": false,
431
+ "internalType": "address",
432
+ "name": "reserveToken",
433
+ "type": "address"
434
+ },
435
+ {
436
+ "indexed": false,
437
+ "internalType": "uint256",
438
+ "name": "amount",
439
+ "type": "uint256"
440
+ }
441
+ ],
442
+ "name": "RoyaltyClaimed",
443
+ "type": "event"
444
+ },
445
+ {
446
+ "anonymous": false,
447
+ "inputs": [
448
+ {
449
+ "indexed": false,
450
+ "internalType": "uint256",
451
+ "name": "ratio",
452
+ "type": "uint256"
453
+ }
454
+ ],
455
+ "name": "RoyaltyRangeUpdated",
456
+ "type": "event"
457
+ },
458
+ {
459
+ "anonymous": false,
460
+ "inputs": [
461
+ {
462
+ "indexed": true,
463
+ "internalType": "address",
464
+ "name": "token",
465
+ "type": "address"
466
+ },
467
+ {
468
+ "indexed": false,
469
+ "internalType": "string",
470
+ "name": "name",
471
+ "type": "string"
472
+ },
473
+ {
474
+ "indexed": false,
475
+ "internalType": "string",
476
+ "name": "symbol",
477
+ "type": "string"
478
+ },
479
+ {
480
+ "indexed": true,
481
+ "internalType": "address",
482
+ "name": "reserveToken",
483
+ "type": "address"
484
+ }
485
+ ],
486
+ "name": "TokenCreated",
487
+ "type": "event"
488
+ },
489
+ {
490
+ "inputs": [],
491
+ "name": "BURN_ADDRESS",
492
+ "outputs": [
493
+ {
494
+ "internalType": "address",
495
+ "name": "",
496
+ "type": "address"
497
+ }
498
+ ],
499
+ "stateMutability": "view",
500
+ "type": "function"
501
+ },
502
+ {
503
+ "inputs": [
504
+ {
505
+ "internalType": "address",
506
+ "name": "token",
507
+ "type": "address"
508
+ },
509
+ {
510
+ "internalType": "uint256",
511
+ "name": "tokensToBurn",
512
+ "type": "uint256"
513
+ },
514
+ {
515
+ "internalType": "uint256",
516
+ "name": "minRefund",
517
+ "type": "uint256"
518
+ },
519
+ {
520
+ "internalType": "address",
521
+ "name": "receiver",
522
+ "type": "address"
523
+ }
524
+ ],
525
+ "name": "burn",
526
+ "outputs": [
527
+ {
528
+ "internalType": "uint256",
529
+ "name": "",
530
+ "type": "uint256"
531
+ }
532
+ ],
533
+ "stateMutability": "nonpayable",
534
+ "type": "function"
535
+ },
536
+ {
537
+ "inputs": [
538
+ {
539
+ "internalType": "address",
540
+ "name": "reserveToken",
541
+ "type": "address"
542
+ }
543
+ ],
544
+ "name": "burnRoyalties",
545
+ "outputs": [],
546
+ "stateMutability": "nonpayable",
547
+ "type": "function"
548
+ },
549
+ {
550
+ "inputs": [
551
+ {
552
+ "internalType": "address",
553
+ "name": "reserveToken",
554
+ "type": "address"
555
+ }
556
+ ],
557
+ "name": "claimRoyalties",
558
+ "outputs": [],
559
+ "stateMutability": "nonpayable",
560
+ "type": "function"
561
+ },
562
+ {
563
+ "inputs": [
564
+ {
565
+ "components": [
566
+ {
567
+ "internalType": "string",
568
+ "name": "name",
569
+ "type": "string"
570
+ },
571
+ {
572
+ "internalType": "string",
573
+ "name": "symbol",
574
+ "type": "string"
575
+ },
576
+ {
577
+ "internalType": "string",
578
+ "name": "uri",
579
+ "type": "string"
580
+ }
581
+ ],
582
+ "internalType": "struct MCV2_Bond.MultiTokenParams",
583
+ "name": "tp",
584
+ "type": "tuple"
585
+ },
586
+ {
587
+ "components": [
588
+ {
589
+ "internalType": "uint16",
590
+ "name": "mintRoyalty",
591
+ "type": "uint16"
592
+ },
593
+ {
594
+ "internalType": "uint16",
595
+ "name": "burnRoyalty",
596
+ "type": "uint16"
597
+ },
598
+ {
599
+ "internalType": "address",
600
+ "name": "reserveToken",
601
+ "type": "address"
602
+ },
603
+ {
604
+ "internalType": "uint128",
605
+ "name": "maxSupply",
606
+ "type": "uint128"
607
+ },
608
+ {
609
+ "internalType": "uint128[]",
610
+ "name": "stepRanges",
611
+ "type": "uint128[]"
612
+ },
613
+ {
614
+ "internalType": "uint128[]",
615
+ "name": "stepPrices",
616
+ "type": "uint128[]"
617
+ }
618
+ ],
619
+ "internalType": "struct MCV2_Bond.BondParams",
620
+ "name": "bp",
621
+ "type": "tuple"
622
+ }
623
+ ],
624
+ "name": "createMultiToken",
625
+ "outputs": [
626
+ {
627
+ "internalType": "address",
628
+ "name": "",
629
+ "type": "address"
630
+ }
631
+ ],
632
+ "stateMutability": "payable",
633
+ "type": "function"
634
+ },
635
+ {
636
+ "inputs": [
637
+ {
638
+ "components": [
639
+ {
640
+ "internalType": "string",
641
+ "name": "name",
642
+ "type": "string"
643
+ },
644
+ {
645
+ "internalType": "string",
646
+ "name": "symbol",
647
+ "type": "string"
648
+ }
649
+ ],
650
+ "internalType": "struct MCV2_Bond.TokenParams",
651
+ "name": "tp",
652
+ "type": "tuple"
653
+ },
654
+ {
655
+ "components": [
656
+ {
657
+ "internalType": "uint16",
658
+ "name": "mintRoyalty",
659
+ "type": "uint16"
660
+ },
661
+ {
662
+ "internalType": "uint16",
663
+ "name": "burnRoyalty",
664
+ "type": "uint16"
665
+ },
666
+ {
667
+ "internalType": "address",
668
+ "name": "reserveToken",
669
+ "type": "address"
670
+ },
671
+ {
672
+ "internalType": "uint128",
673
+ "name": "maxSupply",
674
+ "type": "uint128"
675
+ },
676
+ {
677
+ "internalType": "uint128[]",
678
+ "name": "stepRanges",
679
+ "type": "uint128[]"
680
+ },
681
+ {
682
+ "internalType": "uint128[]",
683
+ "name": "stepPrices",
684
+ "type": "uint128[]"
685
+ }
686
+ ],
687
+ "internalType": "struct MCV2_Bond.BondParams",
688
+ "name": "bp",
689
+ "type": "tuple"
690
+ }
691
+ ],
692
+ "name": "createToken",
693
+ "outputs": [
694
+ {
695
+ "internalType": "address",
696
+ "name": "",
697
+ "type": "address"
698
+ }
699
+ ],
700
+ "stateMutability": "payable",
701
+ "type": "function"
702
+ },
703
+ {
704
+ "inputs": [],
705
+ "name": "creationFee",
706
+ "outputs": [
707
+ {
708
+ "internalType": "uint256",
709
+ "name": "",
710
+ "type": "uint256"
711
+ }
712
+ ],
713
+ "stateMutability": "view",
714
+ "type": "function"
715
+ },
716
+ {
717
+ "inputs": [
718
+ {
719
+ "internalType": "address",
720
+ "name": "token",
721
+ "type": "address"
722
+ }
723
+ ],
724
+ "name": "exists",
725
+ "outputs": [
726
+ {
727
+ "internalType": "bool",
728
+ "name": "",
729
+ "type": "bool"
730
+ }
731
+ ],
732
+ "stateMutability": "view",
733
+ "type": "function"
734
+ },
735
+ {
736
+ "inputs": [
737
+ {
738
+ "internalType": "address",
739
+ "name": "token",
740
+ "type": "address"
741
+ }
742
+ ],
743
+ "name": "getDetail",
744
+ "outputs": [
745
+ {
746
+ "components": [
747
+ {
748
+ "internalType": "uint16",
749
+ "name": "mintRoyalty",
750
+ "type": "uint16"
751
+ },
752
+ {
753
+ "internalType": "uint16",
754
+ "name": "burnRoyalty",
755
+ "type": "uint16"
756
+ },
757
+ {
758
+ "components": [
759
+ {
760
+ "internalType": "address",
761
+ "name": "creator",
762
+ "type": "address"
763
+ },
764
+ {
765
+ "internalType": "address",
766
+ "name": "token",
767
+ "type": "address"
768
+ },
769
+ {
770
+ "internalType": "uint8",
771
+ "name": "decimals",
772
+ "type": "uint8"
773
+ },
774
+ {
775
+ "internalType": "string",
776
+ "name": "symbol",
777
+ "type": "string"
778
+ },
779
+ {
780
+ "internalType": "string",
781
+ "name": "name",
782
+ "type": "string"
783
+ },
784
+ {
785
+ "internalType": "uint40",
786
+ "name": "createdAt",
787
+ "type": "uint40"
788
+ },
789
+ {
790
+ "internalType": "uint128",
791
+ "name": "currentSupply",
792
+ "type": "uint128"
793
+ },
794
+ {
795
+ "internalType": "uint128",
796
+ "name": "maxSupply",
797
+ "type": "uint128"
798
+ },
799
+ {
800
+ "internalType": "uint128",
801
+ "name": "priceForNextMint",
802
+ "type": "uint128"
803
+ },
804
+ {
805
+ "internalType": "address",
806
+ "name": "reserveToken",
807
+ "type": "address"
808
+ },
809
+ {
810
+ "internalType": "uint8",
811
+ "name": "reserveDecimals",
812
+ "type": "uint8"
813
+ },
814
+ {
815
+ "internalType": "string",
816
+ "name": "reserveSymbol",
817
+ "type": "string"
818
+ },
819
+ {
820
+ "internalType": "string",
821
+ "name": "reserveName",
822
+ "type": "string"
823
+ },
824
+ {
825
+ "internalType": "uint256",
826
+ "name": "reserveBalance",
827
+ "type": "uint256"
828
+ }
829
+ ],
830
+ "internalType": "struct MCV2_Bond.BondInfo",
831
+ "name": "info",
832
+ "type": "tuple"
833
+ },
834
+ {
835
+ "components": [
836
+ {
837
+ "internalType": "uint128",
838
+ "name": "rangeTo",
839
+ "type": "uint128"
840
+ },
841
+ {
842
+ "internalType": "uint128",
843
+ "name": "price",
844
+ "type": "uint128"
845
+ }
846
+ ],
847
+ "internalType": "struct MCV2_Bond.BondStep[]",
848
+ "name": "steps",
849
+ "type": "tuple[]"
850
+ }
851
+ ],
852
+ "internalType": "struct MCV2_Bond.BondDetail",
853
+ "name": "detail",
854
+ "type": "tuple"
855
+ }
856
+ ],
857
+ "stateMutability": "view",
858
+ "type": "function"
859
+ },
860
+ {
861
+ "inputs": [
862
+ {
863
+ "internalType": "uint256",
864
+ "name": "start",
865
+ "type": "uint256"
866
+ },
867
+ {
868
+ "internalType": "uint256",
869
+ "name": "stop",
870
+ "type": "uint256"
871
+ }
872
+ ],
873
+ "name": "getList",
874
+ "outputs": [
875
+ {
876
+ "components": [
877
+ {
878
+ "internalType": "address",
879
+ "name": "creator",
880
+ "type": "address"
881
+ },
882
+ {
883
+ "internalType": "address",
884
+ "name": "token",
885
+ "type": "address"
886
+ },
887
+ {
888
+ "internalType": "uint8",
889
+ "name": "decimals",
890
+ "type": "uint8"
891
+ },
892
+ {
893
+ "internalType": "string",
894
+ "name": "symbol",
895
+ "type": "string"
896
+ },
897
+ {
898
+ "internalType": "string",
899
+ "name": "name",
900
+ "type": "string"
901
+ },
902
+ {
903
+ "internalType": "uint40",
904
+ "name": "createdAt",
905
+ "type": "uint40"
906
+ },
907
+ {
908
+ "internalType": "uint128",
909
+ "name": "currentSupply",
910
+ "type": "uint128"
911
+ },
912
+ {
913
+ "internalType": "uint128",
914
+ "name": "maxSupply",
915
+ "type": "uint128"
916
+ },
917
+ {
918
+ "internalType": "uint128",
919
+ "name": "priceForNextMint",
920
+ "type": "uint128"
921
+ },
922
+ {
923
+ "internalType": "address",
924
+ "name": "reserveToken",
925
+ "type": "address"
926
+ },
927
+ {
928
+ "internalType": "uint8",
929
+ "name": "reserveDecimals",
930
+ "type": "uint8"
931
+ },
932
+ {
933
+ "internalType": "string",
934
+ "name": "reserveSymbol",
935
+ "type": "string"
936
+ },
937
+ {
938
+ "internalType": "string",
939
+ "name": "reserveName",
940
+ "type": "string"
941
+ },
942
+ {
943
+ "internalType": "uint256",
944
+ "name": "reserveBalance",
945
+ "type": "uint256"
946
+ }
947
+ ],
948
+ "internalType": "struct MCV2_Bond.BondInfo[]",
949
+ "name": "info",
950
+ "type": "tuple[]"
951
+ }
952
+ ],
953
+ "stateMutability": "view",
954
+ "type": "function"
955
+ },
956
+ {
957
+ "inputs": [
958
+ {
959
+ "internalType": "address",
960
+ "name": "token",
961
+ "type": "address"
962
+ },
963
+ {
964
+ "internalType": "uint256",
965
+ "name": "tokensToBurn",
966
+ "type": "uint256"
967
+ }
968
+ ],
969
+ "name": "getRefundForTokens",
970
+ "outputs": [
971
+ {
972
+ "internalType": "uint256",
973
+ "name": "refundAmount",
974
+ "type": "uint256"
975
+ },
976
+ {
977
+ "internalType": "uint256",
978
+ "name": "royalty",
979
+ "type": "uint256"
980
+ }
981
+ ],
982
+ "stateMutability": "view",
983
+ "type": "function"
984
+ },
985
+ {
986
+ "inputs": [
987
+ {
988
+ "internalType": "address",
989
+ "name": "token",
990
+ "type": "address"
991
+ },
992
+ {
993
+ "internalType": "uint256",
994
+ "name": "tokensToMint",
995
+ "type": "uint256"
996
+ }
997
+ ],
998
+ "name": "getReserveForToken",
999
+ "outputs": [
1000
+ {
1001
+ "internalType": "uint256",
1002
+ "name": "reserveAmount",
1003
+ "type": "uint256"
1004
+ },
1005
+ {
1006
+ "internalType": "uint256",
1007
+ "name": "royalty",
1008
+ "type": "uint256"
1009
+ }
1010
+ ],
1011
+ "stateMutability": "view",
1012
+ "type": "function"
1013
+ },
1014
+ {
1015
+ "inputs": [
1016
+ {
1017
+ "internalType": "address",
1018
+ "name": "wallet",
1019
+ "type": "address"
1020
+ },
1021
+ {
1022
+ "internalType": "address",
1023
+ "name": "reserveToken",
1024
+ "type": "address"
1025
+ }
1026
+ ],
1027
+ "name": "getRoyaltyInfo",
1028
+ "outputs": [
1029
+ {
1030
+ "internalType": "uint256",
1031
+ "name": "",
1032
+ "type": "uint256"
1033
+ },
1034
+ {
1035
+ "internalType": "uint256",
1036
+ "name": "",
1037
+ "type": "uint256"
1038
+ }
1039
+ ],
1040
+ "stateMutability": "view",
1041
+ "type": "function"
1042
+ },
1043
+ {
1044
+ "inputs": [
1045
+ {
1046
+ "internalType": "address",
1047
+ "name": "token",
1048
+ "type": "address"
1049
+ }
1050
+ ],
1051
+ "name": "getSteps",
1052
+ "outputs": [
1053
+ {
1054
+ "components": [
1055
+ {
1056
+ "internalType": "uint128",
1057
+ "name": "rangeTo",
1058
+ "type": "uint128"
1059
+ },
1060
+ {
1061
+ "internalType": "uint128",
1062
+ "name": "price",
1063
+ "type": "uint128"
1064
+ }
1065
+ ],
1066
+ "internalType": "struct MCV2_Bond.BondStep[]",
1067
+ "name": "",
1068
+ "type": "tuple[]"
1069
+ }
1070
+ ],
1071
+ "stateMutability": "view",
1072
+ "type": "function"
1073
+ },
1074
+ {
1075
+ "inputs": [
1076
+ {
1077
+ "internalType": "address",
1078
+ "name": "creator",
1079
+ "type": "address"
1080
+ },
1081
+ {
1082
+ "internalType": "uint256",
1083
+ "name": "start",
1084
+ "type": "uint256"
1085
+ },
1086
+ {
1087
+ "internalType": "uint256",
1088
+ "name": "stop",
1089
+ "type": "uint256"
1090
+ }
1091
+ ],
1092
+ "name": "getTokensByCreator",
1093
+ "outputs": [
1094
+ {
1095
+ "internalType": "address[]",
1096
+ "name": "addresses",
1097
+ "type": "address[]"
1098
+ }
1099
+ ],
1100
+ "stateMutability": "view",
1101
+ "type": "function"
1102
+ },
1103
+ {
1104
+ "inputs": [
1105
+ {
1106
+ "internalType": "address",
1107
+ "name": "reserveToken",
1108
+ "type": "address"
1109
+ },
1110
+ {
1111
+ "internalType": "uint256",
1112
+ "name": "start",
1113
+ "type": "uint256"
1114
+ },
1115
+ {
1116
+ "internalType": "uint256",
1117
+ "name": "stop",
1118
+ "type": "uint256"
1119
+ }
1120
+ ],
1121
+ "name": "getTokensByReserveToken",
1122
+ "outputs": [
1123
+ {
1124
+ "internalType": "address[]",
1125
+ "name": "addresses",
1126
+ "type": "address[]"
1127
+ }
1128
+ ],
1129
+ "stateMutability": "view",
1130
+ "type": "function"
1131
+ },
1132
+ {
1133
+ "inputs": [],
1134
+ "name": "maxRoyaltyRange",
1135
+ "outputs": [
1136
+ {
1137
+ "internalType": "uint256",
1138
+ "name": "",
1139
+ "type": "uint256"
1140
+ }
1141
+ ],
1142
+ "stateMutability": "view",
1143
+ "type": "function"
1144
+ },
1145
+ {
1146
+ "inputs": [
1147
+ {
1148
+ "internalType": "address",
1149
+ "name": "token",
1150
+ "type": "address"
1151
+ }
1152
+ ],
1153
+ "name": "maxSupply",
1154
+ "outputs": [
1155
+ {
1156
+ "internalType": "uint128",
1157
+ "name": "",
1158
+ "type": "uint128"
1159
+ }
1160
+ ],
1161
+ "stateMutability": "view",
1162
+ "type": "function"
1163
+ },
1164
+ {
1165
+ "inputs": [
1166
+ {
1167
+ "internalType": "address",
1168
+ "name": "token",
1169
+ "type": "address"
1170
+ },
1171
+ {
1172
+ "internalType": "uint256",
1173
+ "name": "tokensToMint",
1174
+ "type": "uint256"
1175
+ },
1176
+ {
1177
+ "internalType": "uint256",
1178
+ "name": "maxReserveAmount",
1179
+ "type": "uint256"
1180
+ },
1181
+ {
1182
+ "internalType": "address",
1183
+ "name": "receiver",
1184
+ "type": "address"
1185
+ }
1186
+ ],
1187
+ "name": "mint",
1188
+ "outputs": [
1189
+ {
1190
+ "internalType": "uint256",
1191
+ "name": "",
1192
+ "type": "uint256"
1193
+ }
1194
+ ],
1195
+ "stateMutability": "nonpayable",
1196
+ "type": "function"
1197
+ },
1198
+ {
1199
+ "inputs": [],
1200
+ "name": "owner",
1201
+ "outputs": [
1202
+ {
1203
+ "internalType": "address",
1204
+ "name": "",
1205
+ "type": "address"
1206
+ }
1207
+ ],
1208
+ "stateMutability": "view",
1209
+ "type": "function"
1210
+ },
1211
+ {
1212
+ "inputs": [
1213
+ {
1214
+ "internalType": "address",
1215
+ "name": "token",
1216
+ "type": "address"
1217
+ }
1218
+ ],
1219
+ "name": "priceForNextMint",
1220
+ "outputs": [
1221
+ {
1222
+ "internalType": "uint128",
1223
+ "name": "",
1224
+ "type": "uint128"
1225
+ }
1226
+ ],
1227
+ "stateMutability": "view",
1228
+ "type": "function"
1229
+ },
1230
+ {
1231
+ "inputs": [],
1232
+ "name": "protocolBeneficiary",
1233
+ "outputs": [
1234
+ {
1235
+ "internalType": "address",
1236
+ "name": "",
1237
+ "type": "address"
1238
+ }
1239
+ ],
1240
+ "stateMutability": "view",
1241
+ "type": "function"
1242
+ },
1243
+ {
1244
+ "inputs": [],
1245
+ "name": "renounceOwnership",
1246
+ "outputs": [],
1247
+ "stateMutability": "nonpayable",
1248
+ "type": "function"
1249
+ },
1250
+ {
1251
+ "inputs": [
1252
+ {
1253
+ "internalType": "address",
1254
+ "name": "",
1255
+ "type": "address"
1256
+ }
1257
+ ],
1258
+ "name": "tokenBond",
1259
+ "outputs": [
1260
+ {
1261
+ "internalType": "address",
1262
+ "name": "creator",
1263
+ "type": "address"
1264
+ },
1265
+ {
1266
+ "internalType": "uint16",
1267
+ "name": "mintRoyalty",
1268
+ "type": "uint16"
1269
+ },
1270
+ {
1271
+ "internalType": "uint16",
1272
+ "name": "burnRoyalty",
1273
+ "type": "uint16"
1274
+ },
1275
+ {
1276
+ "internalType": "uint40",
1277
+ "name": "createdAt",
1278
+ "type": "uint40"
1279
+ },
1280
+ {
1281
+ "internalType": "address",
1282
+ "name": "reserveToken",
1283
+ "type": "address"
1284
+ },
1285
+ {
1286
+ "internalType": "uint256",
1287
+ "name": "reserveBalance",
1288
+ "type": "uint256"
1289
+ }
1290
+ ],
1291
+ "stateMutability": "view",
1292
+ "type": "function"
1293
+ },
1294
+ {
1295
+ "inputs": [],
1296
+ "name": "tokenCount",
1297
+ "outputs": [
1298
+ {
1299
+ "internalType": "uint256",
1300
+ "name": "",
1301
+ "type": "uint256"
1302
+ }
1303
+ ],
1304
+ "stateMutability": "view",
1305
+ "type": "function"
1306
+ },
1307
+ {
1308
+ "inputs": [
1309
+ {
1310
+ "internalType": "uint256",
1311
+ "name": "",
1312
+ "type": "uint256"
1313
+ }
1314
+ ],
1315
+ "name": "tokens",
1316
+ "outputs": [
1317
+ {
1318
+ "internalType": "address",
1319
+ "name": "",
1320
+ "type": "address"
1321
+ }
1322
+ ],
1323
+ "stateMutability": "view",
1324
+ "type": "function"
1325
+ },
1326
+ {
1327
+ "inputs": [
1328
+ {
1329
+ "internalType": "address",
1330
+ "name": "newOwner",
1331
+ "type": "address"
1332
+ }
1333
+ ],
1334
+ "name": "transferOwnership",
1335
+ "outputs": [],
1336
+ "stateMutability": "nonpayable",
1337
+ "type": "function"
1338
+ },
1339
+ {
1340
+ "inputs": [
1341
+ {
1342
+ "internalType": "address",
1343
+ "name": "token",
1344
+ "type": "address"
1345
+ },
1346
+ {
1347
+ "internalType": "address",
1348
+ "name": "creator",
1349
+ "type": "address"
1350
+ }
1351
+ ],
1352
+ "name": "updateBondCreator",
1353
+ "outputs": [],
1354
+ "stateMutability": "nonpayable",
1355
+ "type": "function"
1356
+ },
1357
+ {
1358
+ "inputs": [
1359
+ {
1360
+ "internalType": "uint256",
1361
+ "name": "amount",
1362
+ "type": "uint256"
1363
+ }
1364
+ ],
1365
+ "name": "updateCreationFee",
1366
+ "outputs": [],
1367
+ "stateMutability": "nonpayable",
1368
+ "type": "function"
1369
+ },
1370
+ {
1371
+ "inputs": [
1372
+ {
1373
+ "internalType": "uint256",
1374
+ "name": "ratio",
1375
+ "type": "uint256"
1376
+ }
1377
+ ],
1378
+ "name": "updateMaxRoyaltyRange",
1379
+ "outputs": [],
1380
+ "stateMutability": "nonpayable",
1381
+ "type": "function"
1382
+ },
1383
+ {
1384
+ "inputs": [
1385
+ {
1386
+ "internalType": "address",
1387
+ "name": "protocolBeneficiary_",
1388
+ "type": "address"
1389
+ }
1390
+ ],
1391
+ "name": "updateProtocolBeneficiary",
1392
+ "outputs": [],
1393
+ "stateMutability": "nonpayable",
1394
+ "type": "function"
1395
+ },
1396
+ {
1397
+ "inputs": [
1398
+ {
1399
+ "internalType": "address",
1400
+ "name": "",
1401
+ "type": "address"
1402
+ },
1403
+ {
1404
+ "internalType": "address",
1405
+ "name": "",
1406
+ "type": "address"
1407
+ }
1408
+ ],
1409
+ "name": "userTokenRoyaltyBalance",
1410
+ "outputs": [
1411
+ {
1412
+ "internalType": "uint256",
1413
+ "name": "",
1414
+ "type": "uint256"
1415
+ }
1416
+ ],
1417
+ "stateMutability": "view",
1418
+ "type": "function"
1419
+ },
1420
+ {
1421
+ "inputs": [
1422
+ {
1423
+ "internalType": "address",
1424
+ "name": "",
1425
+ "type": "address"
1426
+ },
1427
+ {
1428
+ "internalType": "address",
1429
+ "name": "",
1430
+ "type": "address"
1431
+ }
1432
+ ],
1433
+ "name": "userTokenRoyaltyClaimed",
1434
+ "outputs": [
1435
+ {
1436
+ "internalType": "uint256",
1437
+ "name": "",
1438
+ "type": "uint256"
1439
+ }
1440
+ ],
1441
+ "stateMutability": "view",
1442
+ "type": "function"
1443
+ },
1444
+ {
1445
+ "inputs": [],
1446
+ "name": "version",
1447
+ "outputs": [
1448
+ {
1449
+ "internalType": "string",
1450
+ "name": "",
1451
+ "type": "string"
1452
+ }
1453
+ ],
1454
+ "stateMutability": "pure",
1455
+ "type": "function"
1456
+ }
1457
+ ]