moon-iq 0.2.0 → 0.2.2

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.
package/dist/index.js CHANGED
@@ -334,20 +334,48 @@ var TOOL_DEFINITIONS = [
334
334
  "name": "fiat",
335
335
  "type": "string",
336
336
  "description": "The fiat currency to convert to",
337
- "required": true
337
+ "required": true,
338
+ "choices": [
339
+ "USD",
340
+ "EUR"
341
+ ]
338
342
  },
339
343
  {
340
344
  "name": "stablecoin",
341
345
  "type": "string",
342
346
  "description": "The stablecoin token to convert from",
343
- "required": true
347
+ "required": true,
348
+ "choices": [
349
+ "USDC",
350
+ "USDT",
351
+ "EURC"
352
+ ]
344
353
  }
345
354
  ]
346
355
  },
347
356
  {
348
357
  "name": "iron_offramp_initiate",
349
358
  "description": "Initiate an offramp by sending stablecoin to the offramp's deposit account. The stablecoin will be converted to fiat and deposited into your registered bank account. This process is asynchronous and may take some time for funds to appear in your bank account.",
350
- "options": []
359
+ "options": [
360
+ {
361
+ "name": "simulation",
362
+ "type": "boolean",
363
+ "description": "If true, only simulate the transaction without executing it",
364
+ "required": true
365
+ },
366
+ {
367
+ "name": "offrampId",
368
+ "type": "string",
369
+ "description": "The ID of the offramp to initiate",
370
+ "required": true
371
+ },
372
+ {
373
+ "name": "amount",
374
+ "type": "number",
375
+ "description": "The amount of stablecoin to send (in human-readable units, e.g., 100.5)",
376
+ "required": true
377
+ }
378
+ ]
351
379
  },
352
380
  {
353
381
  "name": "iron_offramp_list",
@@ -380,13 +408,22 @@ var TOOL_DEFINITIONS = [
380
408
  "name": "fiat",
381
409
  "type": "string",
382
410
  "description": "The fiat currency to convert from",
383
- "required": true
411
+ "required": true,
412
+ "choices": [
413
+ "USD",
414
+ "EUR"
415
+ ]
384
416
  },
385
417
  {
386
418
  "name": "stablecoin",
387
419
  "type": "string",
388
420
  "description": "The stablecoin token to convert to",
389
- "required": true
421
+ "required": true,
422
+ "choices": [
423
+ "USDC",
424
+ "USDT",
425
+ "EURC"
426
+ ]
390
427
  }
391
428
  ]
392
429
  },
@@ -398,7 +435,15 @@ var TOOL_DEFINITIONS = [
398
435
  "name": "status",
399
436
  "type": "string",
400
437
  "description": "Status of the onramps to get",
401
- "required": true
438
+ "required": true,
439
+ "choices": [
440
+ "Created",
441
+ "Authorized",
442
+ "DepositAccountAdded",
443
+ "Approved",
444
+ "Rejected",
445
+ "Cancelled"
446
+ ]
402
447
  }
403
448
  ]
404
449
  },
@@ -422,7 +467,20 @@ var TOOL_DEFINITIONS = [
422
467
  {
423
468
  "name": "lending_deposit",
424
469
  "description": "Deposit USDC into your lending account to earn interest.",
425
- "options": []
470
+ "options": [
471
+ {
472
+ "name": "simulation",
473
+ "type": "boolean",
474
+ "description": "If true, only simulate the transaction without executing it",
475
+ "required": true
476
+ },
477
+ {
478
+ "name": "amount",
479
+ "type": "number",
480
+ "description": "Amount of USDC to deposit",
481
+ "required": true
482
+ }
483
+ ]
426
484
  },
427
485
  {
428
486
  "name": "lending_rate_retrieve",
@@ -444,12 +502,44 @@ var TOOL_DEFINITIONS = [
444
502
  {
445
503
  "name": "lending_withdraw",
446
504
  "description": "Withdraw USDC from your lending account.",
447
- "options": []
505
+ "options": [
506
+ {
507
+ "name": "simulation",
508
+ "type": "boolean",
509
+ "description": "If true, only simulate the transaction without executing it",
510
+ "required": true
511
+ },
512
+ {
513
+ "name": "amount",
514
+ "type": "number",
515
+ "description": "Amount of USDC to withdraw",
516
+ "required": true
517
+ }
518
+ ]
448
519
  },
449
520
  {
450
521
  "name": "moonit_buy",
451
522
  "description": "Buy tokens on Moonit platform using bonding curve. This tool converts USDC to SOL, then uses the SOL as collateral to buy Moonit tokens. It builds, signs, and executes the transaction. Note: This tool requires SOL for transaction fees.",
452
- "options": []
523
+ "options": [
524
+ {
525
+ "name": "simulation",
526
+ "type": "boolean",
527
+ "description": "If true, only simulate the transaction without executing it",
528
+ "required": true
529
+ },
530
+ {
531
+ "name": "token",
532
+ "type": "string",
533
+ "description": "Address of the token to buy on Moonit",
534
+ "required": true
535
+ },
536
+ {
537
+ "name": "amount",
538
+ "type": "number",
539
+ "description": "Amount of USDC used to buy the token",
540
+ "required": true
541
+ }
542
+ ]
453
543
  },
454
544
  {
455
545
  "name": "moonit_buy_recommend",
@@ -466,7 +556,26 @@ var TOOL_DEFINITIONS = [
466
556
  {
467
557
  "name": "moonit_sell",
468
558
  "description": "Sell tokens on Moonit platform using bonding curve. This tool sells Moonit tokens to get SOL, then converts SOL to USDC. It builds, signs, and executes the transaction. Note: This tool requires SOL for transaction fees.",
469
- "options": []
559
+ "options": [
560
+ {
561
+ "name": "simulation",
562
+ "type": "boolean",
563
+ "description": "If true, only simulate the transaction without executing it",
564
+ "required": true
565
+ },
566
+ {
567
+ "name": "token",
568
+ "type": "string",
569
+ "description": "Address of the Moonit token to sell",
570
+ "required": true
571
+ },
572
+ {
573
+ "name": "amount",
574
+ "type": "number",
575
+ "description": "Amount of Moonit tokens to sell",
576
+ "required": true
577
+ }
578
+ ]
470
579
  },
471
580
  {
472
581
  "name": "moonit_sell_recommend",
@@ -483,7 +592,40 @@ var TOOL_DEFINITIONS = [
483
592
  {
484
593
  "name": "moonit_token_list",
485
594
  "description": "Get the most popular Moonit tokens sorted by market capitalization. Moonit is a token launch platform by DEX Screener x Helio offering bonding curve mechanics, daily LP rewards, and graduation to Raydium/Meteora DEXs.",
486
- "options": []
595
+ "options": [
596
+ {
597
+ "name": "sort",
598
+ "type": "string",
599
+ "description": "Sort tokens by",
600
+ "required": true,
601
+ "choices": [
602
+ "MARKET_CAP",
603
+ "TRENDING"
604
+ ]
605
+ },
606
+ {
607
+ "name": "state",
608
+ "type": "string",
609
+ "description": "Filter tokens by state",
610
+ "required": true,
611
+ "choices": [
612
+ "GRADUATED",
613
+ "NOT_GRADUATED"
614
+ ]
615
+ },
616
+ {
617
+ "name": "limit",
618
+ "type": "number",
619
+ "description": "Number of results per page",
620
+ "required": true
621
+ },
622
+ {
623
+ "name": "page",
624
+ "type": "number",
625
+ "description": "The page number of results",
626
+ "required": true
627
+ }
628
+ ]
487
629
  },
488
630
  {
489
631
  "name": "moonpay_buy",
@@ -528,7 +670,20 @@ var TOOL_DEFINITIONS = [
528
670
  {
529
671
  "name": "rhythm_trade_list",
530
672
  "description": "Get whale trades from Rhythm discover",
531
- "options": []
673
+ "options": [
674
+ {
675
+ "name": "limit",
676
+ "type": "number",
677
+ "description": "Number of results per page",
678
+ "required": true
679
+ },
680
+ {
681
+ "name": "page",
682
+ "type": "number",
683
+ "description": "The page number of results",
684
+ "required": true
685
+ }
686
+ ]
532
687
  },
533
688
  {
534
689
  "name": "token_balance_list",
@@ -544,7 +699,15 @@ var TOOL_DEFINITIONS = [
544
699
  "name": "chain",
545
700
  "type": "string",
546
701
  "description": "Blockchain to check balances on (e.g. 'solana', 'ethereum', 'base')",
547
- "required": true
702
+ "required": true,
703
+ "choices": [
704
+ "solana",
705
+ "ethereum",
706
+ "base",
707
+ "polygon",
708
+ "arbitrum",
709
+ "optimism"
710
+ ]
548
711
  }
549
712
  ]
550
713
  },
@@ -568,14 +731,41 @@ var TOOL_DEFINITIONS = [
568
731
  "name": "chain",
569
732
  "type": "string",
570
733
  "description": "Blockchain where the token and wallet exist",
571
- "required": true
734
+ "required": true,
735
+ "choices": [
736
+ "solana",
737
+ "ethereum",
738
+ "base",
739
+ "polygon",
740
+ "arbitrum",
741
+ "optimism"
742
+ ]
572
743
  }
573
744
  ]
574
745
  },
575
746
  {
576
747
  "name": "token_buy",
577
748
  "description": "Swap the specified amount of USDC for a token.",
578
- "options": []
749
+ "options": [
750
+ {
751
+ "name": "simulation",
752
+ "type": "boolean",
753
+ "description": "If true, only simulate the transaction without executing it",
754
+ "required": true
755
+ },
756
+ {
757
+ "name": "token",
758
+ "type": "string",
759
+ "description": "The address of the token to buy",
760
+ "required": true
761
+ },
762
+ {
763
+ "name": "amount",
764
+ "type": "number",
765
+ "description": "Amount of USDC to spend to buy the token",
766
+ "required": true
767
+ }
768
+ ]
579
769
  },
580
770
  {
581
771
  "name": "token_digest_retrieve",
@@ -591,14 +781,47 @@ var TOOL_DEFINITIONS = [
591
781
  "name": "chain",
592
782
  "type": "string",
593
783
  "description": "Blockchain network where the token exists",
594
- "required": true
784
+ "required": true,
785
+ "choices": [
786
+ "solana",
787
+ "ethereum",
788
+ "base",
789
+ "polygon",
790
+ "arbitrum",
791
+ "optimism"
792
+ ]
595
793
  }
596
794
  ]
597
795
  },
598
796
  {
599
797
  "name": "token_limit_buy",
600
798
  "description": "Create a limit buy order to swap USDC for a token at a specific price.",
601
- "options": []
799
+ "options": [
800
+ {
801
+ "name": "simulation",
802
+ "type": "boolean",
803
+ "description": "If true, only simulate the transaction without executing it",
804
+ "required": true
805
+ },
806
+ {
807
+ "name": "token",
808
+ "type": "string",
809
+ "description": "The address of the token to buy",
810
+ "required": true
811
+ },
812
+ {
813
+ "name": "amount",
814
+ "type": "number",
815
+ "description": "Amount of USDC to spend to buy the token",
816
+ "required": true
817
+ },
818
+ {
819
+ "name": "price",
820
+ "type": "number",
821
+ "description": "Price in dollars (USDC) to buy the token",
822
+ "required": true
823
+ }
824
+ ]
602
825
  },
603
826
  {
604
827
  "name": "token_limit_buy_recommend",
@@ -632,7 +855,32 @@ var TOOL_DEFINITIONS = [
632
855
  {
633
856
  "name": "token_limit_sell",
634
857
  "description": "Create a limit sell order to swap a token for USDC at a specific price.",
635
- "options": []
858
+ "options": [
859
+ {
860
+ "name": "simulation",
861
+ "type": "boolean",
862
+ "description": "If true, only simulate the transaction without executing it",
863
+ "required": true
864
+ },
865
+ {
866
+ "name": "token",
867
+ "type": "string",
868
+ "description": "The address of the token to sell",
869
+ "required": true
870
+ },
871
+ {
872
+ "name": "amount",
873
+ "type": "number",
874
+ "description": "Amount of the token to sell",
875
+ "required": true
876
+ },
877
+ {
878
+ "name": "price",
879
+ "type": "number",
880
+ "description": "Price in dollars (USDC) to sell the token",
881
+ "required": true
882
+ }
883
+ ]
636
884
  },
637
885
  {
638
886
  "name": "token_limit_sell_recommend",
@@ -649,7 +897,44 @@ var TOOL_DEFINITIONS = [
649
897
  {
650
898
  "name": "token_recurring_buy",
651
899
  "description": "Create a recurring buy order (DCA) to swap USDC for a token at regular intervals.",
652
- "options": []
900
+ "options": [
901
+ {
902
+ "name": "simulation",
903
+ "type": "boolean",
904
+ "description": "If true, only simulate the transaction without executing it",
905
+ "required": true
906
+ },
907
+ {
908
+ "name": "token",
909
+ "type": "string",
910
+ "description": "The address of the token to buy",
911
+ "required": true
912
+ },
913
+ {
914
+ "name": "amount",
915
+ "type": "number",
916
+ "description": "Amount of USDC used to buy the token per order",
917
+ "required": true
918
+ },
919
+ {
920
+ "name": "interval",
921
+ "type": "string",
922
+ "description": "Time interval between orders",
923
+ "required": true,
924
+ "choices": [
925
+ "hour",
926
+ "day",
927
+ "week",
928
+ "month"
929
+ ]
930
+ },
931
+ {
932
+ "name": "numberOfOrders",
933
+ "type": "number",
934
+ "description": "Number of buy orders",
935
+ "required": true
936
+ }
937
+ ]
653
938
  },
654
939
  {
655
940
  "name": "token_recurring_order_list",
@@ -671,7 +956,44 @@ var TOOL_DEFINITIONS = [
671
956
  {
672
957
  "name": "token_recurring_sell",
673
958
  "description": "Create a recurring sell order (DCA) to swap a token for USDC at regular intervals.",
674
- "options": []
959
+ "options": [
960
+ {
961
+ "name": "simulation",
962
+ "type": "boolean",
963
+ "description": "If true, only simulate the transaction without executing it",
964
+ "required": true
965
+ },
966
+ {
967
+ "name": "token",
968
+ "type": "string",
969
+ "description": "The address of the token to sell",
970
+ "required": true
971
+ },
972
+ {
973
+ "name": "amount",
974
+ "type": "number",
975
+ "description": "Amount of the token to sell per order",
976
+ "required": true
977
+ },
978
+ {
979
+ "name": "interval",
980
+ "type": "string",
981
+ "description": "Time interval between orders",
982
+ "required": true,
983
+ "choices": [
984
+ "hour",
985
+ "day",
986
+ "week",
987
+ "month"
988
+ ]
989
+ },
990
+ {
991
+ "name": "numberOfOrders",
992
+ "type": "number",
993
+ "description": "Number of recurring orders to create",
994
+ "required": true
995
+ }
996
+ ]
675
997
  },
676
998
  {
677
999
  "name": "token_retrieve",
@@ -687,7 +1009,15 @@ var TOOL_DEFINITIONS = [
687
1009
  "name": "chain",
688
1010
  "type": "string",
689
1011
  "description": "Blockchain network where the token exists",
690
- "required": true
1012
+ "required": true,
1013
+ "choices": [
1014
+ "solana",
1015
+ "ethereum",
1016
+ "base",
1017
+ "polygon",
1018
+ "arbitrum",
1019
+ "optimism"
1020
+ ]
691
1021
  }
692
1022
  ]
693
1023
  },
@@ -705,25 +1035,77 @@ var TOOL_DEFINITIONS = [
705
1035
  "name": "chain",
706
1036
  "type": "string",
707
1037
  "description": "Blockchain to search on (e.g. 'solana', 'ethereum', 'base')",
708
- "required": true
1038
+ "required": true,
1039
+ "choices": [
1040
+ "solana",
1041
+ "ethereum",
1042
+ "base",
1043
+ "polygon",
1044
+ "arbitrum",
1045
+ "optimism"
1046
+ ]
709
1047
  },
710
1048
  {
711
1049
  "name": "limit",
712
- "type": "number",
1050
+ "type": "string",
713
1051
  "description": "Maximum number of results to return (optional, defaults to 5)",
714
- "required": false
1052
+ "required": true
715
1053
  }
716
1054
  ]
717
1055
  },
718
1056
  {
719
1057
  "name": "token_sell",
720
1058
  "description": "Swap the specified amount of tokens for USDC.",
721
- "options": []
1059
+ "options": [
1060
+ {
1061
+ "name": "simulation",
1062
+ "type": "boolean",
1063
+ "description": "If true, only simulate the transaction without executing it",
1064
+ "required": true
1065
+ },
1066
+ {
1067
+ "name": "token",
1068
+ "type": "string",
1069
+ "description": "The address of the token to sell",
1070
+ "required": true
1071
+ },
1072
+ {
1073
+ "name": "amount",
1074
+ "type": "number",
1075
+ "description": "Amount of token to sell",
1076
+ "required": true
1077
+ }
1078
+ ]
722
1079
  },
723
1080
  {
724
1081
  "name": "token_swap",
725
1082
  "description": "Swap the specified amount of input token for output token.",
726
- "options": []
1083
+ "options": [
1084
+ {
1085
+ "name": "simulation",
1086
+ "type": "boolean",
1087
+ "description": "If true, only simulate the transaction without executing it",
1088
+ "required": true
1089
+ },
1090
+ {
1091
+ "name": "input",
1092
+ "type": "string",
1093
+ "description": "The address of the input token to swap",
1094
+ "required": true
1095
+ },
1096
+ {
1097
+ "name": "output",
1098
+ "type": "string",
1099
+ "description": "The address of the output token to receive",
1100
+ "required": true
1101
+ },
1102
+ {
1103
+ "name": "amount",
1104
+ "type": "number",
1105
+ "description": "The amount of the input token to swap",
1106
+ "required": true
1107
+ }
1108
+ ]
727
1109
  },
728
1110
  {
729
1111
  "name": "token_swap_recommend",
@@ -740,7 +1122,55 @@ var TOOL_DEFINITIONS = [
740
1122
  {
741
1123
  "name": "token_trending_list",
742
1124
  "description": "Get currently trending tokens on a blockchain, sorted by popularity rank, trading volume, or liquidity. Perfect for discovering what's hot right now.",
743
- "options": []
1125
+ "options": [
1126
+ {
1127
+ "name": "chain",
1128
+ "type": "string",
1129
+ "description": "Blockchain to get trending tokens from (e.g. 'solana', 'ethereum', 'base')",
1130
+ "required": true,
1131
+ "choices": [
1132
+ "solana",
1133
+ "ethereum",
1134
+ "base",
1135
+ "polygon",
1136
+ "arbitrum",
1137
+ "optimism"
1138
+ ]
1139
+ },
1140
+ {
1141
+ "name": "sort",
1142
+ "type": "string",
1143
+ "description": "How to sort results: 'rank' for trending score, 'volume' for highest 24h trading volume, 'liquidity' for most liquid tokens",
1144
+ "required": true,
1145
+ "choices": [
1146
+ "rank",
1147
+ "volume",
1148
+ "liquidity"
1149
+ ]
1150
+ },
1151
+ {
1152
+ "name": "order",
1153
+ "type": "string",
1154
+ "description": "Sort direction: 'asc' for ascending, 'desc' for descending",
1155
+ "required": true,
1156
+ "choices": [
1157
+ "asc",
1158
+ "desc"
1159
+ ]
1160
+ },
1161
+ {
1162
+ "name": "limit",
1163
+ "type": "number",
1164
+ "description": "Number of results per page",
1165
+ "required": true
1166
+ },
1167
+ {
1168
+ "name": "page",
1169
+ "type": "number",
1170
+ "description": "The page number of results",
1171
+ "required": true
1172
+ }
1173
+ ]
744
1174
  },
745
1175
  {
746
1176
  "name": "user_retrieve",
@@ -761,19 +1191,19 @@ var TOOL_DEFINITIONS = [
761
1191
  "name": "firstName",
762
1192
  "type": "string",
763
1193
  "description": "The user's first name, or null to clear it",
764
- "required": false
1194
+ "required": true
765
1195
  },
766
1196
  {
767
1197
  "name": "lastName",
768
1198
  "type": "string",
769
1199
  "description": "The user's last name, or null to clear it",
770
- "required": false
1200
+ "required": true
771
1201
  },
772
1202
  {
773
1203
  "name": "username",
774
1204
  "type": "string",
775
1205
  "description": "The user's username (3-20 lowercase letters, numbers, and underscores, must start with a letter), or null to clear it",
776
- "required": false
1206
+ "required": true
777
1207
  }
778
1208
  ]
779
1209
  }
@@ -826,7 +1256,7 @@ async function callToolWithAuth(baseUrl, toolName, params) {
826
1256
  // src/index.ts
827
1257
  var DEFAULT_BASE_URL = "https://moon-iq.com";
828
1258
  var program = new Command();
829
- program.name("mooniq").description("Moon IQ CLI").version("0.2.0");
1259
+ program.name("mooniq").description("Moon IQ CLI").version("0.2.1");
830
1260
  program.command("login").description("Log in to Moon IQ via OAuth").option(
831
1261
  "-b, --base-url <url>",
832
1262
  "Base URL (default: https://moon-iq.com or from ~/.config/moon-iq/config.json)"