@provable-games/budokan-sdk 0.1.15 → 0.1.16
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-d2NE8oS8.d.cts → client-CP4dxHGv.d.cts} +3 -0
- package/dist/{client-d2NE8oS8.d.ts → client-CP4dxHGv.d.ts} +3 -0
- package/dist/index.cjs +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +7 -1
- 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 +7 -1
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
package/dist/react.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { m as BudokanClientConfig, B as BudokanClient, T as Tournament, b as PaginatedResult, e as TournamentListParams, q as Phase, L as LeaderboardEntry, R as Registration, h as PlayerTournament, f as PlayerStats, g as PlayerTournamentParams, c as RewardClaim, d as RewardClaimSummary, k as PrizeStats, a as Prize, P as PrizeAggregation, Q as QualificationEntry, i as PlatformStats, s as WSEventMessage, r as WSChannel, C as ConnectionMode } from './client-
|
|
3
|
+
import { m as BudokanClientConfig, B as BudokanClient, T as Tournament, b as PaginatedResult, e as TournamentListParams, q as Phase, L as LeaderboardEntry, R as Registration, h as PlayerTournament, f as PlayerStats, g as PlayerTournamentParams, c as RewardClaim, d as RewardClaimSummary, k as PrizeStats, a as Prize, P as PrizeAggregation, Q as QualificationEntry, i as PlatformStats, s as WSEventMessage, r as WSChannel, C as ConnectionMode } from './client-CP4dxHGv.cjs';
|
|
4
4
|
import 'starknet';
|
|
5
5
|
import '@provable-games/metagame-sdk';
|
|
6
6
|
|
package/dist/react.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { m as BudokanClientConfig, B as BudokanClient, T as Tournament, b as PaginatedResult, e as TournamentListParams, q as Phase, L as LeaderboardEntry, R as Registration, h as PlayerTournament, f as PlayerStats, g as PlayerTournamentParams, c as RewardClaim, d as RewardClaimSummary, k as PrizeStats, a as Prize, P as PrizeAggregation, Q as QualificationEntry, i as PlatformStats, s as WSEventMessage, r as WSChannel, C as ConnectionMode } from './client-
|
|
3
|
+
import { m as BudokanClientConfig, B as BudokanClient, T as Tournament, b as PaginatedResult, e as TournamentListParams, q as Phase, L as LeaderboardEntry, R as Registration, h as PlayerTournament, f as PlayerStats, g as PlayerTournamentParams, c as RewardClaim, d as RewardClaimSummary, k as PrizeStats, a as Prize, P as PrizeAggregation, Q as QualificationEntry, i as PlatformStats, s as WSEventMessage, r as WSChannel, C as ConnectionMode } from './client-CP4dxHGv.js';
|
|
4
4
|
import 'starknet';
|
|
5
5
|
import '@provable-games/metagame-sdk';
|
|
6
6
|
|
package/dist/react.js
CHANGED
|
@@ -1000,6 +1000,7 @@ function parsePrize(raw) {
|
|
|
1000
1000
|
let tokenId = null;
|
|
1001
1001
|
let distributionType = null;
|
|
1002
1002
|
let distributionWeight = null;
|
|
1003
|
+
let distributionShares = null;
|
|
1003
1004
|
let distributionCount = null;
|
|
1004
1005
|
let payoutPosition = 0;
|
|
1005
1006
|
if (tokenTypeData) {
|
|
@@ -1018,7 +1019,11 @@ function parsePrize(raw) {
|
|
|
1018
1019
|
if (distType) {
|
|
1019
1020
|
distributionType = distType.toLowerCase();
|
|
1020
1021
|
const distValue = distVariant[distType];
|
|
1021
|
-
|
|
1022
|
+
if (distributionType === "custom") {
|
|
1023
|
+
distributionShares = Array.isArray(distValue) ? distValue.map((v) => Number(v)) : null;
|
|
1024
|
+
} else {
|
|
1025
|
+
distributionWeight = distValue != null ? Number(distValue) : null;
|
|
1026
|
+
}
|
|
1022
1027
|
}
|
|
1023
1028
|
}
|
|
1024
1029
|
const countOption = erc20?.distribution_count;
|
|
@@ -1039,6 +1044,7 @@ function parsePrize(raw) {
|
|
|
1039
1044
|
tokenId,
|
|
1040
1045
|
distributionType,
|
|
1041
1046
|
distributionWeight,
|
|
1047
|
+
distributionShares,
|
|
1042
1048
|
distributionCount,
|
|
1043
1049
|
sponsorAddress: num.toHex(obj.sponsor_address)
|
|
1044
1050
|
};
|