Skip to content

Commit

Permalink
fix: import structure
Browse files Browse the repository at this point in the history
  • Loading branch information
SneakySensei committed Sep 7, 2024
1 parent 3790164 commit e5bd196
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion packages/backend/services/xmtp.service.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { broadCastConfigEntities } from "../../common/xmtp/brodcaster-config";
import { base64ToBytes } from "../utils/functions";
import { RedisService } from "./redis.service";
import { Client, type XmtpEnv } from "@xmtp/xmtp-js";
import { broadCastConfigEntities } from "common";
import { Redis } from "ioredis";

export class XmtpClientService {
Expand Down Expand Up @@ -45,6 +45,10 @@ export class XmtpClientService {
console.error(`Missing ${config.id}_FILE_PERSISTENCE_PATH`);
return;
}
const { GrpcApiClient } = await import("@xmtp/grpc-api-client");
const { RedisPersistence } = await import(
"@xmtp/redis-persistence"
);

try {
const { GrpcApiClient } = await import(
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/utils/functions/start-broadcast.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { broadCastConfigEntities } from "../../../common/xmtp/brodcaster-config";
import { Broadcast as BroadcastService } from "../../services/broadcast.service";
import type { Client } from "@xmtp/xmtp-js";
import { broadCastConfigEntities } from "common";

const XMTP_RATE_LIMIT = 1000;
const XMTP_RATE_LIMIT_TIME = 60 * 1000; // 1 minute
Expand Down
1 change: 1 addition & 0 deletions packages/common/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as ConnectFour from "./connect-four";
import * as Contracts from "./contracts";
import * as RockPaperScissors from "./rock-paper-scissors";
export { broadCastConfigEntities } from "./xmtp/brodcaster-config";

export const gameBetWinnerPercentage = 60;
export const gameBetPoolPercentage = 20;
Expand Down

0 comments on commit e5bd196

Please sign in to comment.