@xgamesfun/solana 0.20.1 → 0.25.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 +95 -52
- package/bin/xsolana.mjs +23 -8
- package/examples/blind-forge.json +2 -4
- package/examples/coin-flip-arena.json +4 -12
- package/examples/duel-arena.json +1 -4
- package/examples/elements-set.json +2 -9
- package/examples/expedition-guild.json +1 -8
- package/examples/fair-presale.json +1 -3
- package/examples/guild-missions.json +3 -10
- package/examples/halving-seasons.json +4 -9
- package/examples/hero-trials.json +15 -6
- package/examples/holder-den.json +38 -0
- package/examples/holders-drop.json +105 -0
- package/examples/ideas.json +788 -788
- package/examples/match-predictions.json +24 -0
- package/examples/merge-2048.json +5 -5
- package/examples/nft-raffle.json +1 -0
- package/examples/pack-league.json +108 -0
- package/examples/paper-hands-farm.json +4 -16
- package/examples/partner-vault.json +20 -7
- package/examples/sacrifice-raffle.json +2 -10
- package/examples/shelter-fair.json +1 -0
- package/examples/stakers-draw.json +4 -15
- package/examples/star-fleet.json +1 -8
- package/examples/starforce.json +6 -6
- package/examples/stride-sneakers.json +164 -0
- package/examples/trade-in-shop.json +2 -3
- package/js/approve/details.mjs +122 -52
- package/js/approve/ed25519.mjs +5 -1
- package/js/approve/live-check.mjs +83 -26
- package/js/approve/page.html +217 -78
- package/js/approve/page.js +43 -15
- package/js/approve/server.mjs +290 -73
- package/js/chain/base58.js +7 -1
- package/js/chain/borsh.js +24 -11
- package/js/chain/bytes.js +11 -8
- package/js/chain/core.js +35 -7
- package/js/chain/curve.js +1 -1
- package/js/chain/lookup.js +124 -36
- package/js/chain/mint.js +6 -2
- package/js/chain/pda.js +2 -2
- package/js/chain/programs.js +6 -6
- package/js/chain/rpc.js +44 -16
- package/js/chain/token.js +13 -2
- package/js/chain/token2022.js +55 -16
- package/js/chain/tx.js +32 -22
- package/js/client/accounts.js +653 -131
- package/js/client/compressed.js +4 -3
- package/js/client/grant.js +267 -83
- package/js/client/idl/loot.js +1 -1
- package/js/client/idl/loot.json +2406 -2176
- package/js/client/index.js +1 -0
- package/js/client/ix.js +3059 -664
- package/js/client/pda.js +39 -33
- package/js/client/policy.js +52 -24
- package/js/client/random.js +70 -0
- package/js/client/sizes.js +414 -16
- package/js/client/traits.js +14 -5
- package/js/connect/connect.mjs +59 -17
- package/js/economy/check.mjs +4153 -725
- package/js/economy/cost.mjs +403 -64
- package/js/economy/examples.mjs +176 -35
- package/js/economy/explain.mjs +466 -111
- package/js/economy/guide.mjs +296 -72
- package/js/economy/legal.mjs +12 -6
- package/js/economy/live.mjs +83 -19
- package/js/economy/model.mjs +462 -124
- package/js/economy/plan.mjs +1306 -219
- package/js/economy/schema.json +390 -484
- package/js/economy/secrets.mjs +17 -7
- package/js/economy/simulate.mjs +883 -223
- package/js/economy/txsize.mjs +15 -3
- package/js/economy/validate.mjs +61 -24
- package/js/mcp/server.mjs +42 -14
- package/js/mcp/tools.mjs +307 -88
- package/js/play/index.js +2864 -619
- package/js/play/keys.js +193 -0
- package/js/results/index.js +223 -30
- package/js/results/server.js +230 -0
- package/js/results/wire.js +64 -16
- package/package.json +6 -4
- package/release.json +5 -5
- package/skills/xsolana-economy/SKILL.md +39 -21
- package/skills/xsolana-economy/references/after-launch.md +58 -38
- package/skills/xsolana-economy/references/apps.md +97 -50
- package/skills/xsolana-economy/references/sentence-to-spec.md +148 -121
- package/skills/xsolana-economy/references/telling-the-person.md +61 -17
- package/types/chain/core.d.ts +4 -2
- package/types/chain/lookup.d.ts +5 -2
- package/types/chain/rpc.d.ts +3 -1
- package/types/client/accounts.d.ts +217 -56
- package/types/client/grant.d.ts +72 -27
- package/types/client/idl/loot.d.ts +602 -549
- package/types/client/index.d.ts +1 -0
- package/types/client/ix.d.ts +3884 -247
- package/types/client/pda.d.ts +22 -16
- 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/guide.d.mts +5 -0
- package/types/economy/live.d.mts +16 -1
- package/types/economy/model.d.mts +151 -38
- package/types/economy/plan.d.mts +237 -194
- package/types/economy/simulate.d.mts +21 -13
- package/types/mcp/tools.d.mts +21 -13
- package/types/play/index.d.ts +453 -53
- package/types/play/keys.d.ts +51 -0
- package/types/results/index.d.ts +7 -6
- package/types/results/server.d.ts +126 -0
- package/types/results/wire.d.ts +1 -1
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"network": "devnet",
|
|
4
|
+
"name": "Holders Drop",
|
|
5
|
+
"prompt": "Only holders of our collection get in. They buy a holders' crate for 0.02 SOL with a chance at a limited relic, claim a free holder badge once, and enter a raffle for our one-of-one NFT at 0.005 SOL a ticket. The raffle draws in a week, and only if at least 50 tickets sold; the ticket money goes to the treasury.",
|
|
6
|
+
"currency": "sol",
|
|
7
|
+
"tokens": [
|
|
8
|
+
{
|
|
9
|
+
"key": "sol",
|
|
10
|
+
"source": "sol"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"collection": {
|
|
14
|
+
"name": "Holders Drop"
|
|
15
|
+
},
|
|
16
|
+
"items": [
|
|
17
|
+
{
|
|
18
|
+
"key": "trinket",
|
|
19
|
+
"name": "Holder Trinket",
|
|
20
|
+
"rarity": "Common"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"key": "relic",
|
|
24
|
+
"name": "Holder Relic",
|
|
25
|
+
"rarity": "Epic",
|
|
26
|
+
"supply": 50
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"key": "badge",
|
|
30
|
+
"name": "Holder Badge",
|
|
31
|
+
"soulbound": true
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"boxes": [
|
|
35
|
+
{
|
|
36
|
+
"key": "crate",
|
|
37
|
+
"name": "Holders' Crate",
|
|
38
|
+
"price": 0.02,
|
|
39
|
+
"gate": {
|
|
40
|
+
"collection": "9gyC3T5ynfwHK2EwKrxvmayntaDXjgcbLTaPwMwdeYuh"
|
|
41
|
+
},
|
|
42
|
+
"perWalletEach": {
|
|
43
|
+
"count": 3,
|
|
44
|
+
"every": "1d"
|
|
45
|
+
},
|
|
46
|
+
"outcomes": [
|
|
47
|
+
{
|
|
48
|
+
"gives": "item",
|
|
49
|
+
"item": "trinket",
|
|
50
|
+
"chance": 95
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"gives": "item",
|
|
54
|
+
"item": "relic",
|
|
55
|
+
"chance": 5
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"grants": [
|
|
61
|
+
{
|
|
62
|
+
"key": "badge",
|
|
63
|
+
"name": "Holder Badge",
|
|
64
|
+
"prize": {
|
|
65
|
+
"gives": "item",
|
|
66
|
+
"item": "badge"
|
|
67
|
+
},
|
|
68
|
+
"gate": {
|
|
69
|
+
"collection": "9gyC3T5ynfwHK2EwKrxvmayntaDXjgcbLTaPwMwdeYuh"
|
|
70
|
+
},
|
|
71
|
+
"limits": {
|
|
72
|
+
"perWallet": 1,
|
|
73
|
+
"total": 2000
|
|
74
|
+
},
|
|
75
|
+
"wallets": 2000,
|
|
76
|
+
"fund": 0.2
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
"lotteries": [
|
|
80
|
+
{
|
|
81
|
+
"key": "raffle",
|
|
82
|
+
"name": "One-of-one raffle",
|
|
83
|
+
"price": 0.005,
|
|
84
|
+
"raffle": {
|
|
85
|
+
"nft": "2oguAYJzxA6isSBtu4b8kzNPExdnvCuSwKjnB9dRkdxg",
|
|
86
|
+
"collection": "9gyC3T5ynfwHK2EwKrxvmayntaDXjgcbLTaPwMwdeYuh"
|
|
87
|
+
},
|
|
88
|
+
"minSold": 50,
|
|
89
|
+
"firstDraw": "publish+7d",
|
|
90
|
+
"gate": {
|
|
91
|
+
"collection": "9gyC3T5ynfwHK2EwKrxvmayntaDXjgcbLTaPwMwdeYuh"
|
|
92
|
+
},
|
|
93
|
+
"perWallet": 20,
|
|
94
|
+
"rest": "treasury"
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"scenario": {
|
|
98
|
+
"days": 7,
|
|
99
|
+
"perDay": {
|
|
100
|
+
"box:crate": 60,
|
|
101
|
+
"grant:badge": 100,
|
|
102
|
+
"lottery:raffle": 40
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|