@xgamesfun/solana 0.26.2 → 0.26.3
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/README.md +11 -8
- package/bin/xsolana.mjs +8 -1
- package/examples/blind-forge.json +2 -1
- package/examples/community-coin.json +100 -0
- package/js/approve/live-check.mjs +111 -2
- package/js/approve/page.js +22 -6
- package/js/approve/server.mjs +44 -8
- package/js/chain/mint.js +55 -0
- package/js/chain/token2022.js +89 -0
- package/js/economy/check.mjs +33 -3
- package/js/economy/explain.mjs +1 -1
- package/js/economy/guide.mjs +2 -2
- package/js/economy/legal.mjs +2 -0
- package/js/mcp/tools.mjs +144 -0
- package/package.json +1 -1
- package/release.json +1 -1
- package/skills/xsolana-economy/SKILL.md +27 -5
- package/skills/xsolana-economy/references/sentence-to-spec.md +1 -1
- package/skills/xsolana-economy/references/telling-the-person.md +3 -1
- package/types/chain/mint.d.ts +29 -0
- package/types/chain/token2022.d.ts +38 -0
- package/types/economy/legal.d.mts +1 -0
- package/types/mcp/server.d.mts +53 -1
- package/types/mcp/tools.d.mts +111 -4
package/types/mcp/server.d.mts
CHANGED
|
@@ -260,13 +260,13 @@ export declare function runTool(name: any, input?: {}, ctx?: {}): Promise<{
|
|
|
260
260
|
warnings: any[];
|
|
261
261
|
text: string;
|
|
262
262
|
} | {
|
|
263
|
+
setupSol?: undefined;
|
|
263
264
|
ok: boolean;
|
|
264
265
|
transactions: number;
|
|
265
266
|
approvals: number;
|
|
266
267
|
steps: never[];
|
|
267
268
|
text: string;
|
|
268
269
|
command?: undefined;
|
|
269
|
-
setupSol?: undefined;
|
|
270
270
|
} | {
|
|
271
271
|
ok: boolean;
|
|
272
272
|
command: string;
|
|
@@ -297,6 +297,58 @@ export declare function runTool(name: any, input?: {}, ctx?: {}): Promise<{
|
|
|
297
297
|
kind?: string | undefined;
|
|
298
298
|
})[];
|
|
299
299
|
text: string;
|
|
300
|
+
} | {
|
|
301
|
+
mint?: undefined;
|
|
302
|
+
ok: boolean;
|
|
303
|
+
text: string;
|
|
304
|
+
token?: undefined;
|
|
305
|
+
} | {
|
|
306
|
+
mint?: undefined;
|
|
307
|
+
ok: boolean;
|
|
308
|
+
token: {
|
|
309
|
+
key: string;
|
|
310
|
+
source: string;
|
|
311
|
+
} | {
|
|
312
|
+
key: string;
|
|
313
|
+
source: string;
|
|
314
|
+
name?: string | undefined;
|
|
315
|
+
symbol?: string | undefined;
|
|
316
|
+
decimals: any;
|
|
317
|
+
program: string;
|
|
318
|
+
mint: any;
|
|
319
|
+
powers: {
|
|
320
|
+
mintAuthority: string;
|
|
321
|
+
} | null;
|
|
322
|
+
};
|
|
323
|
+
text: string;
|
|
324
|
+
} | {
|
|
325
|
+
ok: boolean;
|
|
326
|
+
token: {
|
|
327
|
+
key: string;
|
|
328
|
+
source: string;
|
|
329
|
+
} | {
|
|
330
|
+
key: string;
|
|
331
|
+
source: string;
|
|
332
|
+
name?: string | undefined;
|
|
333
|
+
symbol?: string | undefined;
|
|
334
|
+
decimals: any;
|
|
335
|
+
program: string;
|
|
336
|
+
mint: any;
|
|
337
|
+
powers: {
|
|
338
|
+
mintAuthority: string;
|
|
339
|
+
} | null;
|
|
340
|
+
};
|
|
341
|
+
mint: {
|
|
342
|
+
address: string;
|
|
343
|
+
program: string;
|
|
344
|
+
decimals: any;
|
|
345
|
+
supply: string;
|
|
346
|
+
name: any;
|
|
347
|
+
symbol: any;
|
|
348
|
+
mintAuthority: string | null;
|
|
349
|
+
freezeAuthority: string | null;
|
|
350
|
+
};
|
|
351
|
+
text: string;
|
|
300
352
|
} | {
|
|
301
353
|
program: string;
|
|
302
354
|
cluster: "devnet";
|
package/types/mcp/tools.d.mts
CHANGED
|
@@ -62,6 +62,7 @@ export declare const tools: ({
|
|
|
62
62
|
inputSchema: {
|
|
63
63
|
type: string;
|
|
64
64
|
properties: {
|
|
65
|
+
key?: undefined;
|
|
65
66
|
file?: undefined;
|
|
66
67
|
part: {
|
|
67
68
|
type: string;
|
|
@@ -73,6 +74,8 @@ export declare const tools: ({
|
|
|
73
74
|
fit?: undefined;
|
|
74
75
|
limit?: undefined;
|
|
75
76
|
spec?: undefined;
|
|
77
|
+
mint?: undefined;
|
|
78
|
+
project?: undefined;
|
|
76
79
|
};
|
|
77
80
|
additionalProperties: boolean;
|
|
78
81
|
required?: undefined;
|
|
@@ -117,6 +120,7 @@ export declare const tools: ({
|
|
|
117
120
|
inputSchema: {
|
|
118
121
|
type: string;
|
|
119
122
|
properties: {
|
|
123
|
+
key?: undefined;
|
|
120
124
|
file?: undefined;
|
|
121
125
|
part?: undefined;
|
|
122
126
|
query: {
|
|
@@ -139,6 +143,8 @@ export declare const tools: ({
|
|
|
139
143
|
description: string;
|
|
140
144
|
};
|
|
141
145
|
spec?: undefined;
|
|
146
|
+
mint?: undefined;
|
|
147
|
+
project?: undefined;
|
|
142
148
|
};
|
|
143
149
|
additionalProperties: boolean;
|
|
144
150
|
required?: undefined;
|
|
@@ -185,6 +191,7 @@ export declare const tools: ({
|
|
|
185
191
|
inputSchema: {
|
|
186
192
|
type: string;
|
|
187
193
|
properties: {
|
|
194
|
+
key?: undefined;
|
|
188
195
|
spec: {
|
|
189
196
|
type: string;
|
|
190
197
|
description: string;
|
|
@@ -210,6 +217,8 @@ export declare const tools: ({
|
|
|
210
217
|
type: string;
|
|
211
218
|
description: string;
|
|
212
219
|
};
|
|
220
|
+
mint?: undefined;
|
|
221
|
+
project?: undefined;
|
|
213
222
|
};
|
|
214
223
|
additionalProperties: boolean;
|
|
215
224
|
required?: undefined;
|
|
@@ -454,9 +463,9 @@ export declare const tools: ({
|
|
|
454
463
|
warnings: any[];
|
|
455
464
|
needsAuthority?: undefined;
|
|
456
465
|
chance?: undefined;
|
|
466
|
+
setupSol?: undefined;
|
|
457
467
|
from: any;
|
|
458
468
|
text: string;
|
|
459
|
-
setupSol?: undefined;
|
|
460
469
|
} | {
|
|
461
470
|
refusals?: undefined;
|
|
462
471
|
ok: boolean;
|
|
@@ -541,6 +550,7 @@ export declare const tools: ({
|
|
|
541
550
|
inputSchema: {
|
|
542
551
|
type: string;
|
|
543
552
|
properties: {
|
|
553
|
+
key?: undefined;
|
|
544
554
|
part?: undefined;
|
|
545
555
|
query?: undefined;
|
|
546
556
|
name?: undefined;
|
|
@@ -554,6 +564,8 @@ export declare const tools: ({
|
|
|
554
564
|
type: string;
|
|
555
565
|
description: string;
|
|
556
566
|
};
|
|
567
|
+
mint?: undefined;
|
|
568
|
+
project?: undefined;
|
|
557
569
|
};
|
|
558
570
|
required: string[];
|
|
559
571
|
additionalProperties: boolean;
|
|
@@ -589,7 +601,6 @@ export declare const tools: ({
|
|
|
589
601
|
};
|
|
590
602
|
description: string;
|
|
591
603
|
inputSchema: {
|
|
592
|
-
required?: undefined;
|
|
593
604
|
type: string;
|
|
594
605
|
properties: {
|
|
595
606
|
spec: {
|
|
@@ -606,6 +617,7 @@ export declare const tools: ({
|
|
|
606
617
|
};
|
|
607
618
|
};
|
|
608
619
|
additionalProperties: boolean;
|
|
620
|
+
required?: undefined;
|
|
609
621
|
};
|
|
610
622
|
handler(input: any, ctx: any): Promise<{
|
|
611
623
|
ok: boolean;
|
|
@@ -614,13 +626,13 @@ export declare const tools: ({
|
|
|
614
626
|
warnings: any;
|
|
615
627
|
text: string;
|
|
616
628
|
} | {
|
|
629
|
+
setupSol?: undefined;
|
|
617
630
|
ok: boolean;
|
|
618
631
|
transactions: number;
|
|
619
632
|
approvals: number;
|
|
620
633
|
steps: never[];
|
|
621
634
|
text: string;
|
|
622
635
|
command?: undefined;
|
|
623
|
-
setupSol?: undefined;
|
|
624
636
|
} | {
|
|
625
637
|
ok: boolean;
|
|
626
638
|
command: string;
|
|
@@ -640,9 +652,9 @@ export declare const tools: ({
|
|
|
640
652
|
};
|
|
641
653
|
description: string;
|
|
642
654
|
inputSchema: {
|
|
643
|
-
required?: undefined;
|
|
644
655
|
type: string;
|
|
645
656
|
properties: {
|
|
657
|
+
key?: undefined;
|
|
646
658
|
part?: undefined;
|
|
647
659
|
query?: undefined;
|
|
648
660
|
name?: undefined;
|
|
@@ -656,8 +668,11 @@ export declare const tools: ({
|
|
|
656
668
|
type: string;
|
|
657
669
|
description: string;
|
|
658
670
|
};
|
|
671
|
+
mint?: undefined;
|
|
672
|
+
project?: undefined;
|
|
659
673
|
};
|
|
660
674
|
additionalProperties: boolean;
|
|
675
|
+
required?: undefined;
|
|
661
676
|
};
|
|
662
677
|
handler(input: any, ctx: any): Promise<{
|
|
663
678
|
ok: boolean;
|
|
@@ -682,6 +697,95 @@ export declare const tools: ({
|
|
|
682
697
|
})[];
|
|
683
698
|
text: string;
|
|
684
699
|
}>;
|
|
700
|
+
} | {
|
|
701
|
+
name: string;
|
|
702
|
+
annotations: {
|
|
703
|
+
readOnlyHint: boolean;
|
|
704
|
+
destructiveHint: boolean;
|
|
705
|
+
idempotentHint: boolean;
|
|
706
|
+
openWorldHint: boolean;
|
|
707
|
+
};
|
|
708
|
+
description: string;
|
|
709
|
+
inputSchema: {
|
|
710
|
+
type: string;
|
|
711
|
+
properties: {
|
|
712
|
+
file?: undefined;
|
|
713
|
+
part?: undefined;
|
|
714
|
+
query?: undefined;
|
|
715
|
+
name?: undefined;
|
|
716
|
+
fit?: undefined;
|
|
717
|
+
limit?: undefined;
|
|
718
|
+
spec?: undefined;
|
|
719
|
+
mint: {
|
|
720
|
+
type: string;
|
|
721
|
+
description: string;
|
|
722
|
+
};
|
|
723
|
+
key: {
|
|
724
|
+
type: string;
|
|
725
|
+
pattern: string;
|
|
726
|
+
description: string;
|
|
727
|
+
};
|
|
728
|
+
project: {
|
|
729
|
+
type: string;
|
|
730
|
+
description: string;
|
|
731
|
+
};
|
|
732
|
+
};
|
|
733
|
+
required: string[];
|
|
734
|
+
additionalProperties: boolean;
|
|
735
|
+
};
|
|
736
|
+
handler(input: any, ctx: any): Promise<{
|
|
737
|
+
mint?: undefined;
|
|
738
|
+
ok: boolean;
|
|
739
|
+
text: string;
|
|
740
|
+
token?: undefined;
|
|
741
|
+
} | {
|
|
742
|
+
mint?: undefined;
|
|
743
|
+
ok: boolean;
|
|
744
|
+
token: {
|
|
745
|
+
key: string;
|
|
746
|
+
source: string;
|
|
747
|
+
} | {
|
|
748
|
+
key: string;
|
|
749
|
+
source: string;
|
|
750
|
+
name?: string | undefined;
|
|
751
|
+
symbol?: string | undefined;
|
|
752
|
+
decimals: any;
|
|
753
|
+
program: string;
|
|
754
|
+
mint: any;
|
|
755
|
+
powers: {
|
|
756
|
+
mintAuthority: string;
|
|
757
|
+
} | null;
|
|
758
|
+
};
|
|
759
|
+
text: string;
|
|
760
|
+
} | {
|
|
761
|
+
ok: boolean;
|
|
762
|
+
token: {
|
|
763
|
+
key: string;
|
|
764
|
+
source: string;
|
|
765
|
+
} | {
|
|
766
|
+
key: string;
|
|
767
|
+
source: string;
|
|
768
|
+
name?: string | undefined;
|
|
769
|
+
symbol?: string | undefined;
|
|
770
|
+
decimals: any;
|
|
771
|
+
program: string;
|
|
772
|
+
mint: any;
|
|
773
|
+
powers: {
|
|
774
|
+
mintAuthority: string;
|
|
775
|
+
} | null;
|
|
776
|
+
};
|
|
777
|
+
mint: {
|
|
778
|
+
address: string;
|
|
779
|
+
program: string;
|
|
780
|
+
decimals: any;
|
|
781
|
+
supply: string;
|
|
782
|
+
name: any;
|
|
783
|
+
symbol: any;
|
|
784
|
+
mintAuthority: string | null;
|
|
785
|
+
freezeAuthority: string | null;
|
|
786
|
+
};
|
|
787
|
+
text: string;
|
|
788
|
+
}>;
|
|
685
789
|
} | {
|
|
686
790
|
name: string;
|
|
687
791
|
annotations: {
|
|
@@ -695,6 +799,7 @@ export declare const tools: ({
|
|
|
695
799
|
required?: undefined;
|
|
696
800
|
type: string;
|
|
697
801
|
properties: {
|
|
802
|
+
key?: undefined;
|
|
698
803
|
file?: undefined;
|
|
699
804
|
part?: undefined;
|
|
700
805
|
query?: undefined;
|
|
@@ -702,6 +807,8 @@ export declare const tools: ({
|
|
|
702
807
|
fit?: undefined;
|
|
703
808
|
limit?: undefined;
|
|
704
809
|
spec?: undefined;
|
|
810
|
+
mint?: undefined;
|
|
811
|
+
project?: undefined;
|
|
705
812
|
};
|
|
706
813
|
additionalProperties: boolean;
|
|
707
814
|
};
|