diff --git a/backend/src/constants.ts b/backend/src/constants.ts index eb490093..e9fbba99 100644 --- a/backend/src/constants.ts +++ b/backend/src/constants.ts @@ -130,3 +130,5 @@ export const MATCH_STAGE_DURATION: Record = { endOfMatchStage: 0, // Stage does not have a timer terminateMatchStage: 0, // Stage does not have a timer }; + +export const BIRDS_EYE_ZK_ENABLED = false; diff --git a/backend/src/services/power-up.ts b/backend/src/services/power-up.ts index df594cfe..b2f4b5ba 100644 --- a/backend/src/services/power-up.ts +++ b/backend/src/services/power-up.ts @@ -1,4 +1,4 @@ -import { EMPTY_DATA, MENAGE_A_TROIS_DICE_AMOUNT } from "../constants"; +import { BIRDS_EYE_ZK_ENABLED, EMPTY_DATA, MENAGE_A_TROIS_DICE_AMOUNT } from "../constants"; import { getPowerUp, rollDice, toolkitUse } from "../toolkit-api"; import { isPowerUpTypeArray, @@ -62,7 +62,7 @@ const useBirdsEye = ( let sum = 0; // TODO: Fix call to toolkit - if (isZkEnabled(state, ctx)) { + if (isZkEnabled(state, ctx) && BIRDS_EYE_ZK_ENABLED) { const diceData: DiceDataToolkit = { dice_1: 0, dice_2: 0, diff --git a/skaffold.production.yaml b/skaffold.production.yaml index 4544aa05..a25d58f3 100644 --- a/skaffold.production.yaml +++ b/skaffold.production.yaml @@ -20,8 +20,7 @@ build: VITE_API_PORT: "443" VITE_GA_TRACKING_ID: "G-8MLWBJTD89" VITE_TOOLKIT_URL: https://zk-gaming-tk.staging.kryha.dev - # TODO: enable after fixing fees - VITE_ZK_ENABLED: "false" + VITE_ZK_ENABLED: "true" - image: eu.gcr.io/web3-335312/aleo/boloney-production/backend docker: dockerfile: Dockerfile.backend diff --git a/skaffold.staging.yaml b/skaffold.staging.yaml index e3b63399..2f6940ad 100644 --- a/skaffold.staging.yaml +++ b/skaffold.staging.yaml @@ -19,8 +19,7 @@ build: VITE_USE_SSL: "true" VITE_API_PORT: "443" VITE_TOOLKIT_URL: https://zk-gaming-tk.staging.kryha.dev - # TODO: enable after fixing fees - VITE_ZK_ENABLED: "false" + VITE_ZK_ENABLED: "true" - image: eu.gcr.io/web3-335312/aleo/boloney-staging/backend docker: dockerfile: Dockerfile.backend diff --git a/skaffold.yaml b/skaffold.yaml index d5b73cec..9cef17c5 100644 --- a/skaffold.yaml +++ b/skaffold.yaml @@ -18,6 +18,7 @@ build: VITE_USE_SSL: "false" VITE_API_PORT: "80" VITE_TOOLKIT_URL: http://localhost:5001 + VITE_ZK_ENABLED: "true" - image: backend docker: dockerfile: Dockerfile.backend