pyre-world-kit 1.0.13 → 1.0.15

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/dist/actions.js CHANGED
@@ -337,7 +337,7 @@ async function defect(connection, params) {
337
337
  }
338
338
  /** "Said in" — micro buy (0.001 SOL) + message. Routes through bonding curve or DEX automatically. */
339
339
  async function messageFaction(connection, params) {
340
- const MICRO_BUY_LAMPORTS = 1_000; // 0.001 SOL
340
+ const MICRO_BUY_LAMPORTS = 1_000_000; // 0.001 SOL
341
341
  if (params.ascended) {
342
342
  return (0, torchsdk_1.buildVaultSwapTransaction)(connection, {
343
343
  mint: params.mint,
@@ -355,6 +355,7 @@ async function messageFaction(connection, params) {
355
355
  amount_sol: MICRO_BUY_LAMPORTS,
356
356
  message: params.message,
357
357
  vault: params.stronghold,
358
+ vote: (0, mappers_1.mapVote)(Math.random() > 0.5 ? 'fortify' : 'scorched_earth'),
358
359
  });
359
360
  return (0, mappers_1.mapBuyResult)(result);
360
361
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pyre-world-kit",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
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/src/actions.ts CHANGED
@@ -499,7 +499,7 @@ export async function messageFaction(
499
499
  connection: Connection,
500
500
  params: MessageFactionParams,
501
501
  ): Promise<TransactionResult> {
502
- const MICRO_BUY_LAMPORTS = 1_000; // 0.001 SOL
502
+ const MICRO_BUY_LAMPORTS = 1_000_000; // 0.001 SOL
503
503
  if (params.ascended) {
504
504
  return buildVaultSwapTransaction(connection, {
505
505
  mint: params.mint,
@@ -517,6 +517,7 @@ export async function messageFaction(
517
517
  amount_sol: MICRO_BUY_LAMPORTS,
518
518
  message: params.message,
519
519
  vault: params.stronghold,
520
+ vote: mapVote(Math.random() > 0.5 ? 'fortify' : 'scorched_earth'),
520
521
  });
521
522
  return mapBuyResult(result);
522
523
  }