Skip to content

Commit

Permalink
khanhpv - update sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
khanhpv5 committed May 20, 2024
1 parent 35594d1 commit 0af830a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/extension-koni-ui/src/connector/booka/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { signRaw } from '@subwallet/extension-koni-ui/messaging';
import fetch from 'cross-fetch';
import { BehaviorSubject } from 'rxjs';

export const GAME_API_HOST = process.env.GAME_API_HOST || 'https://game-api.anhmtv.xyz';
export const GAME_API_HOST = process.env.GAME_API_HOST || 'http://localhost:3001';
export const TELEGRAM_WEBAPP_LINK = process.env.TELEGRAM_WEBAPP_LINK || 'BookaGamesBot/swbooka';
const storage = SWStorage.instance;
const telegramConnector = TelegramConnector.instance;
Expand All @@ -34,8 +34,8 @@ export class BookaSdk {
private referralListSubject = new BehaviorSubject<ReferralRecord[]>([]);
private gameItemMapSubject = new BehaviorSubject<Record<string, GameItem[]>>({});
private gameInventoryItemListSubject = new BehaviorSubject<GameInventoryItem[]>([]);
private gameInventoryItemInGame = new BehaviorSubject<GameInventoryItem['inventoryInGame']>([]);
private gameItemInGame = new BehaviorSubject<InGameItem>([]);;
private gameInventoryItemInGame = new BehaviorSubject<GameInventoryItem['inventoryInGame']>({});
private gameItemInGame = new BehaviorSubject<Partial<Record<string, InGameItem>>>({});;
private energyConfigSubject = new BehaviorSubject<EnergyConfig | undefined>(undefined);

constructor () {
Expand Down Expand Up @@ -121,7 +121,6 @@ export class BookaSdk {
}

public get gameItemInGameList() {
console.log(this.gameItemInGame.value)
return this.gameItemInGame.value;
}

Expand Down

0 comments on commit 0af830a

Please sign in to comment.