@xgamesfun/solana 0.20.1 → 0.24.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.
- package/README.md +10 -10
- package/examples/coin-flip-arena.json +2 -7
- package/examples/elements-set.json +2 -9
- package/examples/expedition-guild.json +1 -8
- package/examples/guild-missions.json +3 -10
- package/examples/halving-seasons.json +4 -9
- package/examples/hero-trials.json +1 -4
- package/examples/merge-2048.json +5 -5
- package/examples/paper-hands-farm.json +4 -16
- package/examples/partner-vault.json +1 -4
- package/examples/stakers-draw.json +1 -8
- package/examples/star-fleet.json +1 -8
- package/examples/starforce.json +6 -6
- package/js/approve/details.mjs +8 -7
- package/js/approve/server.mjs +20 -5
- package/js/chain/borsh.js +9 -0
- package/js/chain/core.js +14 -2
- package/js/chain/lookup.js +8 -2
- package/js/chain/rpc.js +4 -2
- package/js/client/accounts.js +448 -116
- package/js/client/grant.js +125 -66
- package/js/client/idl/loot.js +1 -1
- package/js/client/idl/loot.json +2360 -2218
- package/js/client/index.js +1 -0
- package/js/client/ix.js +1204 -473
- package/js/client/pda.js +20 -16
- package/js/client/policy.js +44 -23
- package/js/client/random.js +70 -0
- package/js/client/sizes.js +255 -12
- package/js/economy/check.mjs +455 -210
- package/js/economy/cost.mjs +45 -30
- package/js/economy/examples.mjs +2 -2
- package/js/economy/explain.mjs +24 -20
- package/js/economy/guide.mjs +31 -30
- package/js/economy/live.mjs +30 -7
- package/js/economy/model.mjs +171 -56
- package/js/economy/plan.mjs +380 -112
- package/js/economy/schema.json +291 -143
- package/js/economy/simulate.mjs +154 -87
- package/js/mcp/tools.mjs +14 -8
- package/js/play/index.js +1121 -375
- package/js/play/keys.js +167 -0
- package/package.json +1 -1
- package/release.json +5 -5
- package/skills/xsolana-economy/SKILL.md +15 -11
- package/skills/xsolana-economy/references/after-launch.md +37 -27
- package/skills/xsolana-economy/references/apps.md +55 -19
- package/skills/xsolana-economy/references/sentence-to-spec.md +30 -22
- package/skills/xsolana-economy/references/telling-the-person.md +52 -11
- package/types/chain/core.d.ts +3 -1
- package/types/chain/lookup.d.ts +5 -2
- package/types/chain/rpc.d.ts +3 -1
- package/types/client/accounts.d.ts +195 -55
- package/types/client/grant.d.ts +72 -27
- package/types/client/idl/loot.d.ts +590 -559
- package/types/client/index.d.ts +1 -0
- package/types/client/ix.d.ts +3862 -234
- package/types/client/pda.d.ts +19 -15
- package/types/client/policy.d.ts +39 -14
- package/types/client/random.d.ts +26 -0
- package/types/client/sizes.d.ts +93 -5
- package/types/economy/check.d.mts +5 -10
- package/types/economy/cost.d.mts +2 -1
- package/types/economy/live.d.mts +16 -1
- package/types/economy/model.d.mts +105 -37
- package/types/economy/plan.d.mts +193 -192
- package/types/economy/simulate.d.mts +21 -13
- package/types/mcp/tools.d.mts +21 -13
- package/types/play/index.d.ts +450 -39
- package/types/play/keys.d.ts +51 -0
|
@@ -61,6 +61,22 @@ export declare function simulate(economy: any, { now }?: {
|
|
|
61
61
|
totalSol?: any;
|
|
62
62
|
holdSol: any;
|
|
63
63
|
};
|
|
64
|
+
limitedStock?: boolean | undefined;
|
|
65
|
+
whenOut?: string | undefined;
|
|
66
|
+
stock?: {
|
|
67
|
+
whenOut: string;
|
|
68
|
+
stopsSellingInDays: any;
|
|
69
|
+
by: any;
|
|
70
|
+
} | {
|
|
71
|
+
by?: undefined;
|
|
72
|
+
whenOut: string;
|
|
73
|
+
runsOut: {
|
|
74
|
+
inDays: any;
|
|
75
|
+
outcomes: any;
|
|
76
|
+
chancesAfter: any;
|
|
77
|
+
}[];
|
|
78
|
+
stopsSellingInDays?: any;
|
|
79
|
+
} | undefined;
|
|
64
80
|
returnOfRealCostPercent?: any;
|
|
65
81
|
}[];
|
|
66
82
|
items: any;
|
|
@@ -76,21 +92,13 @@ export declare function simulate(economy: any, { now }?: {
|
|
|
76
92
|
pools: {
|
|
77
93
|
key: any;
|
|
78
94
|
pot?: any;
|
|
95
|
+
farm?: any;
|
|
79
96
|
token: any;
|
|
80
|
-
seed:
|
|
97
|
+
seed: any;
|
|
81
98
|
inPerDay: any;
|
|
82
99
|
outPerDay: any;
|
|
83
|
-
ins:
|
|
84
|
-
|
|
85
|
-
perDay: any;
|
|
86
|
-
}[];
|
|
87
|
-
outs: ({
|
|
88
|
-
by: any;
|
|
89
|
-
perDay: any;
|
|
90
|
-
} | {
|
|
91
|
-
by: any;
|
|
92
|
-
percentPerDay: any;
|
|
93
|
-
})[];
|
|
100
|
+
ins: any;
|
|
101
|
+
outs: any[];
|
|
94
102
|
}[];
|
|
95
103
|
perDay: {
|
|
96
104
|
players: {
|
|
@@ -134,7 +142,7 @@ export declare function simulate(economy: any, { now }?: {
|
|
|
134
142
|
projectSol: number;
|
|
135
143
|
oracleSol: number;
|
|
136
144
|
networkPerSignatureSol: number;
|
|
137
|
-
|
|
145
|
+
settleRentUnitSol: number;
|
|
138
146
|
ticketLineRentSol: any;
|
|
139
147
|
collectibleRentSol: number;
|
|
140
148
|
burnRefundSol: number;
|
package/types/mcp/tools.d.mts
CHANGED
|
@@ -272,6 +272,22 @@ export declare const tools: ({
|
|
|
272
272
|
totalSol?: any;
|
|
273
273
|
holdSol: any;
|
|
274
274
|
};
|
|
275
|
+
limitedStock?: boolean | undefined;
|
|
276
|
+
whenOut?: string | undefined;
|
|
277
|
+
stock?: {
|
|
278
|
+
whenOut: string;
|
|
279
|
+
stopsSellingInDays: any;
|
|
280
|
+
by: any;
|
|
281
|
+
} | {
|
|
282
|
+
by?: undefined;
|
|
283
|
+
whenOut: string;
|
|
284
|
+
runsOut: {
|
|
285
|
+
inDays: any;
|
|
286
|
+
outcomes: any;
|
|
287
|
+
chancesAfter: any;
|
|
288
|
+
}[];
|
|
289
|
+
stopsSellingInDays?: any;
|
|
290
|
+
} | undefined;
|
|
275
291
|
returnOfRealCostPercent?: any;
|
|
276
292
|
}[];
|
|
277
293
|
items: any;
|
|
@@ -287,21 +303,13 @@ export declare const tools: ({
|
|
|
287
303
|
pools: {
|
|
288
304
|
key: any;
|
|
289
305
|
pot?: any;
|
|
306
|
+
farm?: any;
|
|
290
307
|
token: any;
|
|
291
|
-
seed:
|
|
308
|
+
seed: any;
|
|
292
309
|
inPerDay: any;
|
|
293
310
|
outPerDay: any;
|
|
294
|
-
ins:
|
|
295
|
-
|
|
296
|
-
perDay: any;
|
|
297
|
-
}[];
|
|
298
|
-
outs: ({
|
|
299
|
-
by: any;
|
|
300
|
-
perDay: any;
|
|
301
|
-
} | {
|
|
302
|
-
by: any;
|
|
303
|
-
percentPerDay: any;
|
|
304
|
-
})[];
|
|
311
|
+
ins: any;
|
|
312
|
+
outs: any[];
|
|
305
313
|
}[];
|
|
306
314
|
perDay: {
|
|
307
315
|
players: {
|
|
@@ -345,7 +353,7 @@ export declare const tools: ({
|
|
|
345
353
|
projectSol: number;
|
|
346
354
|
oracleSol: number;
|
|
347
355
|
networkPerSignatureSol: number;
|
|
348
|
-
|
|
356
|
+
settleRentUnitSol: number;
|
|
349
357
|
ticketLineRentSol: any;
|
|
350
358
|
collectibleRentSol: number;
|
|
351
359
|
burnRefundSol: number;
|