@provable-games/budokan-sdk 0.1.4 → 0.1.5
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/index.cjs +10 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -5
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +10 -5
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +10 -5
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -882,11 +882,16 @@ function parseTournament(raw, entryCount) {
|
|
|
882
882
|
const gameEndDelay = Number(sched?.game_end_delay ?? 0);
|
|
883
883
|
const submissionDuration = Number(sched?.submission_duration ?? 0);
|
|
884
884
|
const createdAtStr = String(createdAt);
|
|
885
|
-
const
|
|
886
|
-
const
|
|
887
|
-
const
|
|
888
|
-
const
|
|
889
|
-
const
|
|
885
|
+
const regStart = createdAt + registrationStartDelay;
|
|
886
|
+
const regEnd = regStart + registrationEndDelay;
|
|
887
|
+
const gameStart = createdAt + gameStartDelay;
|
|
888
|
+
const gameEnd = gameStart + gameEndDelay;
|
|
889
|
+
const subEnd = gameEnd + submissionDuration;
|
|
890
|
+
const registrationStartTime = String(regStart);
|
|
891
|
+
const registrationEndTime = String(regEnd);
|
|
892
|
+
const gameStartTime = String(gameStart);
|
|
893
|
+
const gameEndTime = String(gameEnd);
|
|
894
|
+
const submissionEndTime = String(subEnd);
|
|
890
895
|
const gc = obj.game_config;
|
|
891
896
|
const gameAddress = gc ? starknet.num.toHex(gc.game_address) : "";
|
|
892
897
|
const settingsId = Number(gc?.settings_id ?? 0);
|