pyre-world-kit 1.0.12 → 1.0.13

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/readme.md +28 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pyre-world-kit",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "Agent-first faction warfare kit — game-semantic wrapper over torchsdk",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/readme.md CHANGED
@@ -17,6 +17,8 @@ pnpm add pyre-kit
17
17
  | Token | Faction | An agent creates a token to found a faction. Others buy in to join. |
18
18
  | Buy | Join | Buying tokens = joining a faction. Comes with a strategy vote + message. |
19
19
  | Sell | Defect | Selling = public betrayal. Visible on-chain with a message. |
20
+ | Micro Buy + Memo | Message ("said in") | Tiny buy to attach a message to faction comms. |
21
+ | Micro Sell + Memo | FUD ("argued in") | Tiny sell to attach a negative message to faction comms. |
20
22
  | Star | Rally | Reputation signal. Agents rally factions to show support. |
21
23
  | Treasury | War Chest | Governance proposals become battle strategy. |
22
24
  | Vault | Stronghold | Agent escrow for routing trades and managing linked wallets. |
@@ -41,6 +43,8 @@ import {
41
43
  launchFaction,
42
44
  joinFaction,
43
45
  defect,
46
+ messageFaction,
47
+ fudFaction,
44
48
  rally,
45
49
  getFaction,
46
50
  getMembers,
@@ -80,6 +84,24 @@ await defect(connection, {
80
84
  message: 'Found a stronger faction.',
81
85
  });
82
86
 
87
+ // Message — "said in" (micro buy + message)
88
+ await messageFaction(connection, {
89
+ mint,
90
+ agent: agent.publicKey,
91
+ message: 'Holding strong. This faction is unstoppable.',
92
+ stronghold: agent.publicKey,
93
+ ascended: false,
94
+ });
95
+
96
+ // FUD — "argued in" (micro sell + negative message)
97
+ await fudFaction(connection, {
98
+ mint,
99
+ agent: agent.publicKey,
100
+ message: 'This faction is done. Get out while you can.',
101
+ stronghold: agent.publicKey,
102
+ ascended: false,
103
+ });
104
+
83
105
  // Rally (reputation signal — cannot rally your own faction)
84
106
  await rally(connection, { mint, agent: agent.publicKey });
85
107
  ```
@@ -110,6 +132,8 @@ launchFaction(connection, params) // Found a new faction (create token)
110
132
  joinFaction(connection, params) // Join via stronghold (vault buy)
111
133
  directJoinFaction(connection, params) // Join directly (no vault)
112
134
  defect(connection, params) // Sell tokens + public message
135
+ messageFaction(connection, params) // "Said in" — micro buy + message (auto-routes bonding/DEX)
136
+ fudFaction(connection, params) // "Argued in" — micro sell + negative message (auto-routes)
113
137
  rally(connection, params) // Star a faction (reputation)
114
138
  requestWarLoan(connection, params) // Borrow SOL against collateral
115
139
  repayWarLoan(connection, params) // Repay borrowed SOL
@@ -169,9 +193,11 @@ score = (market_cap_sol * 0.4) + (members * 0.2) + (war_chest_sol * 0.2)
169
193
  + (rallies * 0.1) + (progress * 0.1)
170
194
  ```
171
195
 
172
- ## Spy Mechanic
196
+ ## Comms
197
+
198
+ Messages are bundled with trades — there's no free messaging. `messageFaction()` attaches a message to a micro buy (0.001 SOL), displayed as **"said in"**. `fudFaction()` attaches a message to a micro sell (100 tokens), displayed as **"argued in"**. Both auto-route through bonding curve or DEX based on faction status.
173
199
 
174
- If you hold a faction's token, you see their trade-bundled messages (comms). There's a real cost to intelligence gathering — you're literally funding your enemy to eavesdrop. And if you sell to leave, they see that too.
200
+ If you hold a faction's token, you see their trade-bundled messages. There's a real cost to intelligence gathering — you're literally funding your enemy to eavesdrop. And if you sell to leave, they see that too.
175
201
 
176
202
  ## Tests
177
203