@xgamesfun/solana 0.28.1 → 0.28.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/DISCLAIMER.md +3 -1
- package/README.md +18 -16
- package/bin/xsolana.mjs +27 -1
- package/js/approve/details.mjs +3 -3
- package/js/approve/live-check.mjs +2 -2
- package/js/approve/page.html +5 -5
- package/js/approve/page.js +16 -4
- package/js/approve/server.mjs +31 -26
- package/js/approve/with-key.mjs +7 -4
- package/js/chain/borsh.js +5 -3
- package/js/chain/rpc.js +26 -10
- package/js/client/accounts.js +6 -6
- package/js/client/cluster.js +136 -0
- package/js/client/grant.js +2 -2
- package/js/client/ix.js +16 -16
- package/js/client/pda.js +18 -5
- package/js/economy/check.mjs +28 -13
- package/js/economy/explain.mjs +2 -1
- package/js/economy/guide.mjs +6 -4
- package/js/economy/live.mjs +2 -2
- package/js/economy/plan.mjs +1 -1
- package/js/economy/schema.json +2 -2
- package/js/mcp/server.mjs +35 -4
- package/js/mcp/tools.mjs +56 -45
- package/js/mcp/with-cluster.mjs +25 -0
- package/js/play/index.js +48 -38
- package/js/play/sponsor.js +4 -4
- package/js/results/index.js +36 -14
- package/js/results/server.js +4 -3
- package/js/results/wire.js +9 -8
- package/package.json +6 -1
- package/release.json +6 -1
- package/skills/xsolana-economy/SKILL.md +13 -9
- package/skills/xsolana-economy/references/apps.md +2 -1
- package/skills/xsolana-economy/references/telling-the-person.md +1 -1
- package/skills/xsolana-economy/references/trust-and-cheating.md +1 -1
- package/types/chain/borsh.d.ts +4 -2
- package/types/chain/rpc.d.ts +10 -4
- package/types/client/cluster.d.ts +61 -0
- package/types/client/idl/loot.d.ts +9 -9
- package/types/client/pda.d.ts +1 -1
- package/types/economy/check.d.mts +1 -2
- package/types/economy/plan.d.mts +14 -14
- package/types/mcp/server.d.mts +1 -1
- package/types/mcp/tools.d.mts +9 -7
- package/types/mcp/with-cluster.d.mts +8 -0
- package/types/play/index.d.ts +2 -2
- package/types/results/index.d.ts +14 -7
- package/types/results/server.d.ts +3 -3
- package/types/results/wire.d.ts +8 -8
package/types/results/wire.d.ts
CHANGED
|
@@ -37,14 +37,14 @@ export declare const CERT_KINDS: Readonly<{
|
|
|
37
37
|
}>;
|
|
38
38
|
/** The text the owner signs to let `host` report `game`'s results until `until` (unix seconds). */
|
|
39
39
|
export declare const hostCertText: ({ cluster, game, host, until }: {
|
|
40
|
-
cluster?:
|
|
40
|
+
cluster?: "devnet" | "mainnet" | undefined;
|
|
41
41
|
game: any;
|
|
42
42
|
host: any;
|
|
43
43
|
until: any;
|
|
44
44
|
}) => string;
|
|
45
45
|
/** The text the owner signs to take `host` back. */
|
|
46
46
|
export declare const revokeText: ({ cluster, game, host }: {
|
|
47
|
-
cluster?:
|
|
47
|
+
cluster?: "devnet" | "mainnet" | undefined;
|
|
48
48
|
game: any;
|
|
49
49
|
host: any;
|
|
50
50
|
}) => string;
|
|
@@ -57,7 +57,7 @@ export declare const revokeText: ({ cluster, game, host }: {
|
|
|
57
57
|
* JSON), or 'default'.
|
|
58
58
|
*/
|
|
59
59
|
export declare const drawText: ({ cluster, game, draw, engine, winners, prizes, payout, identity, slug, rates, }: {
|
|
60
|
-
cluster?:
|
|
60
|
+
cluster?: "devnet" | "mainnet" | undefined;
|
|
61
61
|
draw: any;
|
|
62
62
|
engine: any;
|
|
63
63
|
game: any;
|
|
@@ -71,7 +71,7 @@ export declare const drawText: ({ cluster, game, draw, engine, winners, prizes,
|
|
|
71
71
|
/** The text the organizer signs to lock a draw's players (`roster`: rosterHash) to a beacon round still to come. */
|
|
72
72
|
export declare const lockText: ({ cluster, game, draw, roster, players, beacon, net }: {
|
|
73
73
|
beacon: any;
|
|
74
|
-
cluster?:
|
|
74
|
+
cluster?: "devnet" | "mainnet" | undefined;
|
|
75
75
|
draw: any;
|
|
76
76
|
game: any;
|
|
77
77
|
net?: string | undefined;
|
|
@@ -80,7 +80,7 @@ export declare const lockText: ({ cluster, game, draw, roster, players, beacon,
|
|
|
80
80
|
}) => string;
|
|
81
81
|
/** The text a player's wallet signs to enter a draw (identity 'wallet'). */
|
|
82
82
|
export declare const entryText: ({ cluster, game, draw }: {
|
|
83
|
-
cluster?:
|
|
83
|
+
cluster?: "devnet" | "mainnet" | undefined;
|
|
84
84
|
draw: any;
|
|
85
85
|
game: any;
|
|
86
86
|
}) => string;
|
|
@@ -89,7 +89,7 @@ export declare const entryText: ({ cluster, game, draw }: {
|
|
|
89
89
|
* with that X account through the play host) or a wallet address; their giveaways pay from grant `grant` alone.
|
|
90
90
|
*/
|
|
91
91
|
export declare const giveawayHostText: ({ cluster, game, who, slug, grant, until }: {
|
|
92
|
-
cluster?:
|
|
92
|
+
cluster?: "devnet" | "mainnet" | undefined;
|
|
93
93
|
game: any;
|
|
94
94
|
grant: any;
|
|
95
95
|
slug: any;
|
|
@@ -98,7 +98,7 @@ export declare const giveawayHostText: ({ cluster, game, who, slug, grant, until
|
|
|
98
98
|
}) => string;
|
|
99
99
|
/** The text the owner (or authority) signs to take a giveaway host back. */
|
|
100
100
|
export declare const revokeGiveawayText: ({ cluster, game, who }: {
|
|
101
|
-
cluster?:
|
|
101
|
+
cluster?: "devnet" | "mainnet" | undefined;
|
|
102
102
|
game: any;
|
|
103
103
|
who: any;
|
|
104
104
|
}) => string;
|
|
@@ -114,7 +114,7 @@ export declare function canonicalJson(value: any): any;
|
|
|
114
114
|
* place past 255 and more than 255 winners are refused, never written as something else.
|
|
115
115
|
*/
|
|
116
116
|
export declare function resultBytes({ cluster, game, round, endedAt, winners }: {
|
|
117
|
-
cluster?:
|
|
117
|
+
cluster?: "devnet" | "mainnet" | undefined;
|
|
118
118
|
endedAt: any;
|
|
119
119
|
game: any;
|
|
120
120
|
round: any;
|