@provable-games/budokan-sdk 0.1.20 → 0.1.21
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/{client-CoWIQozF.d.cts → client-0HDPKrdw.d.cts} +1 -23
- package/dist/{client-CoWIQozF.d.ts → client-0HDPKrdw.d.ts} +1 -23
- package/dist/index.cjs +0 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -7
- package/dist/index.d.ts +3 -7
- package/dist/index.js +1 -25
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +0 -24
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +0 -24
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as Tournament, P as PrizeAggregation, a as Prize, b as PaginatedResult, Q as QualificationEntry, R as Registration, c as RewardClaim, d as RewardClaimSummary, e as TournamentListParams, f as PlatformStats,
|
|
2
|
-
export { B as BudokanClient,
|
|
1
|
+
import { T as Tournament, P as PrizeAggregation, a as Prize, b as PaginatedResult, Q as QualificationEntry, R as Registration, c as RewardClaim, d as RewardClaimSummary, e as TournamentListParams, f as PlatformStats, g as PrizeStats, W as WSSubscribeOptions, h as WSEventHandler } from './client-0HDPKrdw.cjs';
|
|
2
|
+
export { B as BudokanClient, i as BudokanClientConfig, C as ConnectionMode, j as ConnectionStatus, k as ConnectionStatusState, D as DataSource, G as GameConfig, L as LeaderboardConfig, l as LeaderboardEntry, m as Phase, S as Schedule, n as WSChannel, o as WSEventMessage, p as WSMessage, q as WSSubscribeMessage, r as WSUnsubscribeMessage, s as createBudokanClient } from './client-0HDPKrdw.cjs';
|
|
3
3
|
export { EntryFee } from '@provable-games/metagame-sdk';
|
|
4
4
|
import 'starknet';
|
|
5
5
|
|
|
@@ -105,10 +105,6 @@ interface ApiContext {
|
|
|
105
105
|
retryDelay?: number;
|
|
106
106
|
timeout?: number;
|
|
107
107
|
}
|
|
108
|
-
/**
|
|
109
|
-
* Fetch activity events with optional filtering.
|
|
110
|
-
*/
|
|
111
|
-
declare function getActivity(baseUrl: string, params?: ActivityParams, ctx?: ApiContext): Promise<PaginatedResult<ActivityEvent>>;
|
|
112
108
|
/**
|
|
113
109
|
* Fetch platform-wide activity stats.
|
|
114
110
|
*/
|
|
@@ -194,4 +190,4 @@ interface ChainConfig {
|
|
|
194
190
|
declare const CHAINS: Record<string, ChainConfig>;
|
|
195
191
|
declare function getChainConfig(chain: string): ChainConfig | undefined;
|
|
196
192
|
|
|
197
|
-
export {
|
|
193
|
+
export { BudokanApiError, BudokanConnectionError, BudokanError, BudokanTimeoutError, CHAINS, type ChainConfig, DataSourceError, PaginatedResult, PlatformStats, Prize, PrizeAggregation, PrizeStats, QualificationEntry, Registration, RewardClaim, RewardClaimSummary, RpcError, Tournament, TournamentListParams, TournamentNotFoundError, WSEventHandler, WSManager, WSSubscribeOptions, camelToSnake, getActivityStats, getChainConfig, getGameStats, getGameTournaments, getPrizeStats, getTournament, getTournamentPrizeAggregation, getTournamentPrizes, getTournamentQualifications, getTournamentRegistrations, getTournamentRewardClaims, getTournamentRewardClaimsSummary, getTournaments, normalizeAddress, snakeToCamel, withRetry };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as Tournament, P as PrizeAggregation, a as Prize, b as PaginatedResult, Q as QualificationEntry, R as Registration, c as RewardClaim, d as RewardClaimSummary, e as TournamentListParams, f as PlatformStats,
|
|
2
|
-
export { B as BudokanClient,
|
|
1
|
+
import { T as Tournament, P as PrizeAggregation, a as Prize, b as PaginatedResult, Q as QualificationEntry, R as Registration, c as RewardClaim, d as RewardClaimSummary, e as TournamentListParams, f as PlatformStats, g as PrizeStats, W as WSSubscribeOptions, h as WSEventHandler } from './client-0HDPKrdw.js';
|
|
2
|
+
export { B as BudokanClient, i as BudokanClientConfig, C as ConnectionMode, j as ConnectionStatus, k as ConnectionStatusState, D as DataSource, G as GameConfig, L as LeaderboardConfig, l as LeaderboardEntry, m as Phase, S as Schedule, n as WSChannel, o as WSEventMessage, p as WSMessage, q as WSSubscribeMessage, r as WSUnsubscribeMessage, s as createBudokanClient } from './client-0HDPKrdw.js';
|
|
3
3
|
export { EntryFee } from '@provable-games/metagame-sdk';
|
|
4
4
|
import 'starknet';
|
|
5
5
|
|
|
@@ -105,10 +105,6 @@ interface ApiContext {
|
|
|
105
105
|
retryDelay?: number;
|
|
106
106
|
timeout?: number;
|
|
107
107
|
}
|
|
108
|
-
/**
|
|
109
|
-
* Fetch activity events with optional filtering.
|
|
110
|
-
*/
|
|
111
|
-
declare function getActivity(baseUrl: string, params?: ActivityParams, ctx?: ApiContext): Promise<PaginatedResult<ActivityEvent>>;
|
|
112
108
|
/**
|
|
113
109
|
* Fetch platform-wide activity stats.
|
|
114
110
|
*/
|
|
@@ -194,4 +190,4 @@ interface ChainConfig {
|
|
|
194
190
|
declare const CHAINS: Record<string, ChainConfig>;
|
|
195
191
|
declare function getChainConfig(chain: string): ChainConfig | undefined;
|
|
196
192
|
|
|
197
|
-
export {
|
|
193
|
+
export { BudokanApiError, BudokanConnectionError, BudokanError, BudokanTimeoutError, CHAINS, type ChainConfig, DataSourceError, PaginatedResult, PlatformStats, Prize, PrizeAggregation, PrizeStats, QualificationEntry, Registration, RewardClaim, RewardClaimSummary, RpcError, Tournament, TournamentListParams, TournamentNotFoundError, WSEventHandler, WSManager, WSSubscribeOptions, camelToSnake, getActivityStats, getChainConfig, getGameStats, getGameTournaments, getPrizeStats, getTournament, getTournamentPrizeAggregation, getTournamentPrizes, getTournamentQualifications, getTournamentRegistrations, getTournamentRewardClaims, getTournamentRewardClaimsSummary, getTournaments, normalizeAddress, snakeToCamel, withRetry };
|
package/dist/index.js
CHANGED
|
@@ -367,23 +367,6 @@ function fetchOpts3(ctx) {
|
|
|
367
367
|
timeout: ctx?.timeout
|
|
368
368
|
};
|
|
369
369
|
}
|
|
370
|
-
async function getActivity(baseUrl, params, ctx) {
|
|
371
|
-
const qs = buildQueryString({
|
|
372
|
-
event_type: params?.eventType,
|
|
373
|
-
tournament_id: params?.tournamentId,
|
|
374
|
-
player_address: params?.playerAddress,
|
|
375
|
-
limit: params?.limit,
|
|
376
|
-
offset: params?.offset
|
|
377
|
-
});
|
|
378
|
-
const result = await apiFetch(`${baseUrl}/activity${qs}`, fetchOpts3(ctx));
|
|
379
|
-
const { total, limit: resLimit, offset: resOffset } = extractPagination(result, { limit: params?.limit, offset: params?.offset });
|
|
380
|
-
return {
|
|
381
|
-
data: result.data.map((item) => snakeToCamel(item)),
|
|
382
|
-
total,
|
|
383
|
-
limit: resLimit,
|
|
384
|
-
offset: resOffset
|
|
385
|
-
};
|
|
386
|
-
}
|
|
387
370
|
async function getActivityStats(baseUrl, ctx) {
|
|
388
371
|
const result = await apiFetch(
|
|
389
372
|
`${baseUrl}/activity/stats`,
|
|
@@ -4596,13 +4579,6 @@ var BudokanClient = class {
|
|
|
4596
4579
|
return getTournamentPrizeAggregation(this.resolvedConfig.apiBaseUrl, tournamentId, this.apiCtx);
|
|
4597
4580
|
}
|
|
4598
4581
|
// ---- Activity Queries (API-only, activity is indexed) ----
|
|
4599
|
-
/**
|
|
4600
|
-
* Fetch activity events with optional filtering.
|
|
4601
|
-
* API-only — no RPC fallback available.
|
|
4602
|
-
*/
|
|
4603
|
-
async getActivity(params) {
|
|
4604
|
-
return getActivity(this.resolvedConfig.apiBaseUrl, params, this.apiCtx);
|
|
4605
|
-
}
|
|
4606
4582
|
/**
|
|
4607
4583
|
* Fetch platform-wide activity stats.
|
|
4608
4584
|
* API-only — no RPC fallback available.
|
|
@@ -4656,6 +4632,6 @@ function createBudokanClient(config) {
|
|
|
4656
4632
|
return new BudokanClient(config);
|
|
4657
4633
|
}
|
|
4658
4634
|
|
|
4659
|
-
export { BudokanApiError, BudokanClient, BudokanConnectionError, BudokanError, BudokanTimeoutError, CHAINS, ConnectionStatus, DataSourceError, RpcError, TournamentNotFoundError, WSManager, camelToSnake, createBudokanClient,
|
|
4635
|
+
export { BudokanApiError, BudokanClient, BudokanConnectionError, BudokanError, BudokanTimeoutError, CHAINS, ConnectionStatus, DataSourceError, RpcError, TournamentNotFoundError, WSManager, camelToSnake, createBudokanClient, getActivityStats, getChainConfig, getGameStats, getGameTournaments, getPrizeStats, getTournament, getTournamentPrizeAggregation, getTournamentPrizes, getTournamentQualifications, getTournamentRegistrations, getTournamentRewardClaims, getTournamentRewardClaimsSummary, getTournaments, normalizeAddress, snakeToCamel, withRetry };
|
|
4660
4636
|
//# sourceMappingURL=index.js.map
|
|
4661
4637
|
//# sourceMappingURL=index.js.map
|