@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/react.js
CHANGED
|
@@ -868,11 +868,16 @@ function parseTournament(raw, entryCount) {
|
|
|
868
868
|
const gameEndDelay = Number(sched?.game_end_delay ?? 0);
|
|
869
869
|
const submissionDuration = Number(sched?.submission_duration ?? 0);
|
|
870
870
|
const createdAtStr = String(createdAt);
|
|
871
|
-
const
|
|
872
|
-
const
|
|
873
|
-
const
|
|
874
|
-
const
|
|
875
|
-
const
|
|
871
|
+
const regStart = createdAt + registrationStartDelay;
|
|
872
|
+
const regEnd = regStart + registrationEndDelay;
|
|
873
|
+
const gameStart = createdAt + gameStartDelay;
|
|
874
|
+
const gameEnd = gameStart + gameEndDelay;
|
|
875
|
+
const subEnd = gameEnd + submissionDuration;
|
|
876
|
+
const registrationStartTime = String(regStart);
|
|
877
|
+
const registrationEndTime = String(regEnd);
|
|
878
|
+
const gameStartTime = String(gameStart);
|
|
879
|
+
const gameEndTime = String(gameEnd);
|
|
880
|
+
const submissionEndTime = String(subEnd);
|
|
876
881
|
const gc = obj.game_config;
|
|
877
882
|
const gameAddress = gc ? num.toHex(gc.game_address) : "";
|
|
878
883
|
const settingsId = Number(gc?.settings_id ?? 0);
|