Skip to content

Commit

Permalink
Merged PR 4306: Enabling zk
Browse files Browse the repository at this point in the history
Enabling zero-knowledge

Related work items: #18786
  • Loading branch information
silimarius committed Jun 2, 2023
1 parent 2806c2d commit abcb699
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 2 additions & 0 deletions backend/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,5 @@ export const MATCH_STAGE_DURATION: Record<MatchStage, number> = {
endOfMatchStage: 0, // Stage does not have a timer
terminateMatchStage: 0, // Stage does not have a timer
};

export const BIRDS_EYE_ZK_ENABLED = false;
4 changes: 2 additions & 2 deletions backend/src/services/power-up.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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,
Expand Down
3 changes: 1 addition & 2 deletions skaffold.production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions skaffold.staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit abcb699

Please sign in to comment.