pyre-world-kit 3.3.1 → 3.3.2

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.
@@ -97,10 +97,10 @@ class IntelProvider {
97
97
  positions.sort((a, b) => b.value_sol - a.value_sol);
98
98
  return positions;
99
99
  }
100
- async getRisingFactions(limit = 50) {
100
+ async getRisingFactions(limit) {
101
101
  return this.actionProvider.getFactions({ limit, status: 'rising' });
102
102
  }
103
- async getAscendedFactions(limit = 50) {
103
+ async getAscendedFactions(limit) {
104
104
  return this.actionProvider.getFactions({ limit, status: 'ascended' });
105
105
  }
106
106
  async getNearbyFactions(wallet, { depth = 1, limit = 50 } = {}) {
@@ -418,7 +418,7 @@ class IntelProvider {
418
418
  return events.slice(0, limit ?? 100);
419
419
  }
420
420
  async getWorldStats() {
421
- const { factions } = await this.actionProvider.getFactions({ limit: 200, status: 'all' });
421
+ const { factions } = await this.actionProvider.getFactions({ status: 'all' });
422
422
  const pyreRising = factions.filter((t) => t.status === 'rising');
423
423
  const pyreAscended = factions.filter((t) => t.status === 'ascended');
424
424
  const allFactions = [...pyreRising, ...pyreAscended];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pyre-world-kit",
3
- "version": "3.3.1",
3
+ "version": "3.3.2",
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": "^4.1.1"
19
+ "torchsdk": "^4.1.2"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/node": "^22.15.0",
@@ -87,11 +87,11 @@ export class IntelProvider implements Intel {
87
87
  return positions
88
88
  }
89
89
 
90
- async getRisingFactions(limit = 50): Promise<FactionListResult> {
90
+ async getRisingFactions(limit?: number): Promise<FactionListResult> {
91
91
  return this.actionProvider.getFactions({ limit, status: 'rising' })
92
92
  }
93
93
 
94
- async getAscendedFactions(limit = 50): Promise<FactionListResult> {
94
+ async getAscendedFactions(limit?: number): Promise<FactionListResult> {
95
95
  return this.actionProvider.getFactions({ limit, status: 'ascended' })
96
96
  }
97
97
 
@@ -453,7 +453,7 @@ export class IntelProvider implements Intel {
453
453
  }
454
454
 
455
455
  async getWorldStats(): Promise<WorldStats> {
456
- const { factions } = await this.actionProvider.getFactions({ limit: 200, status: 'all' })
456
+ const { factions } = await this.actionProvider.getFactions({ status: 'all' })
457
457
  const pyreRising = factions.filter((t) => t.status === 'rising')
458
458
  const pyreAscended = factions.filter((t) => t.status === 'ascended')
459
459
  const allFactions = [...pyreRising, ...pyreAscended]