@xgamesfun/solana 0.26.2 → 0.26.4

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.
@@ -7,12 +7,13 @@ export declare function freshAddresses(names: any, random?: typeof randomBytes):
7
7
  * The transactions that put `economy` live for `owner`, with `keys` the addresses of the fresh accounts (each signs
8
8
  * the transaction that creates it). `live`: what is already live (a change publishes only what differs).
9
9
  */
10
- export declare function prepare(economy: any, { owner, keys, live, now, rent, only, slot }: {
10
+ export declare function prepare(economy: any, { owner, keys, live, now, rent, only, slot, renames }: {
11
11
  keys: any;
12
12
  live?: null | undefined;
13
13
  now?: number | undefined;
14
14
  only?: null | undefined;
15
15
  owner: any;
16
+ renames?: null | undefined;
16
17
  rent: any;
17
18
  slot?: null | undefined;
18
19
  }): {
@@ -27,7 +28,14 @@ export declare function prepare(economy: any, { owner, keys, live, now, rent, on
27
28
  refusals?: undefined;
28
29
  ok: boolean;
29
30
  warnings: any[];
30
- steps: any[];
31
+ steps: {
32
+ creates: never[];
33
+ signers: string[];
34
+ id: string;
35
+ part: string;
36
+ says: string;
37
+ build: {};
38
+ }[];
31
39
  transactions: {
32
40
  signer: string;
33
41
  steps: any[];
@@ -38,7 +46,7 @@ export declare function prepare(economy: any, { owner, keys, live, now, rent, on
38
46
  alone: boolean;
39
47
  }[];
40
48
  approvals: number;
41
- freshKeys: any[];
49
+ freshKeys: string[];
42
50
  } | {
43
51
  ok: boolean;
44
52
  refusals: any[];
@@ -55,6 +63,7 @@ export declare function prepare(economy: any, { owner, keys, live, now, rent, on
55
63
  project: any;
56
64
  treasury: any;
57
65
  mints: {};
66
+ tables: any;
58
67
  keys: any;
59
68
  rent: any;
60
69
  slot: null;
@@ -63,7 +72,14 @@ export declare function prepare(economy: any, { owner, keys, live, now, rent, on
63
72
  refusals?: undefined;
64
73
  ok: boolean;
65
74
  warnings: any[];
66
- steps: any[];
75
+ steps: {
76
+ creates: never[];
77
+ signers: string[];
78
+ id: string;
79
+ part: string;
80
+ says: string;
81
+ build: {};
82
+ }[];
67
83
  transactions: {
68
84
  signer: string;
69
85
  steps: any[];
@@ -74,7 +90,7 @@ export declare function prepare(economy: any, { owner, keys, live, now, rent, on
74
90
  alone: boolean;
75
91
  }[];
76
92
  approvals: number;
77
- freshKeys: any[];
93
+ freshKeys: string[];
78
94
  ctx: {
79
95
  owner: any;
80
96
  authority: any;
@@ -83,6 +99,7 @@ export declare function prepare(economy: any, { owner, keys, live, now, rent, on
83
99
  project: any;
84
100
  treasury: any;
85
101
  mints: {};
102
+ tables: any;
86
103
  keys: any;
87
104
  rent: any;
88
105
  slot: null;
@@ -118,9 +135,16 @@ export declare function changedParts(economy: any): {
118
135
  fixed: never[];
119
136
  removed: never[];
120
137
  settings: never[];
138
+ renames: never[];
121
139
  } | {
122
140
  only: Set<any>;
123
141
  fixed: string[];
124
142
  removed: string[];
125
143
  settings: string[];
144
+ renames: any[];
126
145
  };
146
+ /**
147
+ * In words, for a tool that does not read the chain: the spec changes what these tokens are called, and what becomes
148
+ * of that is decided when the change is approved.
149
+ */
150
+ export declare const renamesNote: (renames: any) => string;
@@ -196,6 +196,12 @@ export declare const spendOf: (then: any, m: any) => "Burn" | {
196
196
  Stash?: undefined;
197
197
  Give: any[];
198
198
  };
199
+ /**
200
+ * What a token the setup makes is called on chain, from its entry in a spec as written: [name, ticker, link], with
201
+ * the names it gets when the spec gives none (`tokenOf`: its key in capitals for a ticker, its ticker or key for a
202
+ * name). Two entries with the same labels write the same record, however they are spelled.
203
+ */
204
+ export declare function tokenLabels(t: any): any[];
199
205
  /**
200
206
  * The spec with references resolved and ids given. Unknown references stay as they are (the checker reports
201
207
  * them); call `check` first when it matters.
@@ -929,12 +929,20 @@ export declare function grantArgs(g: any, m: any): {
929
929
  * seats there as it is released, its clock stopped while nobody is in. A seed that lands
930
930
  * before the first stake or after it is released the same way from that stake on, so seeding first would change nothing.
931
931
  */
932
- export declare function setupSteps(economy: any, { now, only, live: given }?: {
932
+ export declare function setupSteps(economy: any, { now, only, live: given, renames }?: {
933
933
  live?: null | undefined;
934
934
  now?: number | undefined;
935
935
  only?: null | undefined;
936
+ renames?: null | undefined;
936
937
  }): {
937
- steps: any[];
938
+ steps: {
939
+ creates: never[];
940
+ signers: string[];
941
+ id: string;
942
+ part: string;
943
+ says: string;
944
+ build: {};
945
+ }[];
938
946
  model: {
939
947
  now: number;
940
948
  name: any;
@@ -1026,6 +1034,7 @@ export declare function setupContext(m: any, { owner: ownerKey, keys, live: give
1026
1034
  project: any;
1027
1035
  treasury: any;
1028
1036
  mints: {};
1037
+ tables: any;
1029
1038
  keys: any;
1030
1039
  rent: any;
1031
1040
  };
@@ -1051,11 +1060,12 @@ export declare function pack(steps: any, ctx: any): {
1051
1060
  * The plan for a spec: refusals, or every step packed into transactions. With `ctx` the transactions carry the
1052
1061
  * real instructions; without it they are built on stand-in addresses (for sizing, cost and showing).
1053
1062
  */
1054
- export declare function plan(economy: any, { now, ctx, only, live }?: {
1063
+ export declare function plan(economy: any, { now, ctx, only, live, renames }?: {
1055
1064
  ctx?: null | undefined;
1056
1065
  live?: null | undefined;
1057
1066
  now?: number | undefined;
1058
1067
  only?: null | undefined;
1068
+ renames?: null | undefined;
1059
1069
  }): {
1060
1070
  ok: boolean;
1061
1071
  refusals: any[];
@@ -1068,7 +1078,14 @@ export declare function plan(economy: any, { now, ctx, only, live }?: {
1068
1078
  refusals?: undefined;
1069
1079
  ok: boolean;
1070
1080
  warnings: any[];
1071
- steps: any[];
1081
+ steps: {
1082
+ creates: never[];
1083
+ signers: string[];
1084
+ id: string;
1085
+ part: string;
1086
+ says: string;
1087
+ build: {};
1088
+ }[];
1072
1089
  transactions: {
1073
1090
  signer: string;
1074
1091
  steps: any[];
@@ -1079,7 +1096,7 @@ export declare function plan(economy: any, { now, ctx, only, live }?: {
1079
1096
  alone: boolean;
1080
1097
  }[];
1081
1098
  approvals: number;
1082
- freshKeys: any[];
1099
+ freshKeys: string[];
1083
1100
  };
1084
1101
  /** What each part needs while the economy runs: the instruction, and who signs it. */
1085
1102
  export declare function playSteps(economy: any): any[];
@@ -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";
@@ -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
  };