pyre-world-kit 3.0.7 → 3.1.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.
|
@@ -276,9 +276,7 @@ class ActionProvider {
|
|
|
276
276
|
amount_sol: MICRO_BUY_LAMPORTS,
|
|
277
277
|
message: params.message,
|
|
278
278
|
vault: params.stronghold,
|
|
279
|
-
vote: params.
|
|
280
|
-
? this.mapper.vote(Math.random() > 0.5 ? 'fortify' : 'scorched_earth')
|
|
281
|
-
: undefined,
|
|
279
|
+
vote: params.strategy ? this.mapper.vote(params.strategy) : undefined,
|
|
282
280
|
});
|
|
283
281
|
return this.mapper.buyResult(result);
|
|
284
282
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -183,7 +183,7 @@ export interface MessageFactionParams {
|
|
|
183
183
|
message: string;
|
|
184
184
|
stronghold: string;
|
|
185
185
|
ascended?: boolean;
|
|
186
|
-
|
|
186
|
+
strategy?: Strategy;
|
|
187
187
|
}
|
|
188
188
|
/** "Argued in" — micro sell + negative message (sells 100 tokens) */
|
|
189
189
|
export interface FudFactionParams {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pyre-world-kit",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
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",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"@solana/spl-token": "^0.4.6",
|
|
17
17
|
"@solana/web3.js": "^1.98.4",
|
|
18
18
|
"bs58": "^6.0.0",
|
|
19
|
-
"torchsdk": "^
|
|
19
|
+
"torchsdk": "^4.0.1"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@types/node": "^22.15.0",
|
|
@@ -386,9 +386,7 @@ export class ActionProvider implements Action {
|
|
|
386
386
|
amount_sol: MICRO_BUY_LAMPORTS,
|
|
387
387
|
message: params.message,
|
|
388
388
|
vault: params.stronghold,
|
|
389
|
-
vote: params.
|
|
390
|
-
? this.mapper.vote(Math.random() > 0.5 ? 'fortify' : ('scorched_earth' as Strategy))
|
|
391
|
-
: undefined,
|
|
389
|
+
vote: params.strategy ? this.mapper.vote(params.strategy) : undefined,
|
|
392
390
|
})
|
|
393
391
|
return this.mapper.buyResult(result)
|
|
394
392
|
}
|
package/src/types.ts
CHANGED