diff --git a/public/UnityBuild/bubbles/Build/prod.data b/public/UnityBuild/bubbles/Build/prod.data
index ddb6bc5..71bef42 100644
Binary files a/public/UnityBuild/bubbles/Build/prod.data and b/public/UnityBuild/bubbles/Build/prod.data differ
diff --git a/public/UnityBuild/bubbles/Build/prod.wasm b/public/UnityBuild/bubbles/Build/prod.wasm
index 8aafdd9..44e6cb1 100644
Binary files a/public/UnityBuild/bubbles/Build/prod.wasm and b/public/UnityBuild/bubbles/Build/prod.wasm differ
diff --git a/src/app/page.tsx b/src/app/page.tsx
index fce235c..d57e86c 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -3,6 +3,7 @@
import Footer from "@/components/Footer";
import Header from "@/components/Header";
import HeroSection from "@/components/HeroSection";
+import Leaderboard from "@/components/Leaderboard";
// import Leaderboard from "@/components/Leaderboard";
import { PrivyProvider } from "@privy-io/react-auth";
import { toSolanaWalletConnectors } from "@privy-io/react-auth/solana";
@@ -37,7 +38,7 @@ export default function Home() {
Coming Soon
diff --git a/src/components/PrivyButton.tsx b/src/components/PrivyButton.tsx index 6f6a996..90c862d 100644 --- a/src/components/PrivyButton.tsx +++ b/src/components/PrivyButton.tsx @@ -13,6 +13,8 @@ import { games } from "@/data/games"; import { WAGER_PRIZE_MULT } from "@/shared/constants"; import { EXPLORER_ADDRESS_TEMPLATE } from "@/data/shared"; +const ENABLE_REFERRAL_SYSTEM = false; // Toggle for referral system visibility + interface GameHistory { ended_time: string; address: string; @@ -38,6 +40,27 @@ interface Opponent { x_profile_url: string; } +interface Referee { + ref_id: string; + id: string; + username: string; + bio: string; + x_profile_url: string; + referred_id: string; + profilePicture?: string; + joinedAt?: string; + earnings?: number; +} + +interface ApiReferee { + ref_id: string; + id: string; + username: string; + bio: string; + x_profile_url: string; + referred_id: string; +} + const GameHistoryItem = ({ game, user, gameImages, defaultPFP, failedImages, setFailedImages, handleViewTxClick }: { game: GameHistory, user: User, @@ -166,11 +189,17 @@ export default function PrivyButton() { const defaultPFP = '/duelfiassets/PFP (1).png'; const [username, setUsername] = useState("Tester"); + const [refId, setRefId] = useState(0); const [bio, setBio] = useState(""); const [avatar, setAvatar] = useStateYour Referral ID:
+{user?.id?.slice(0, 8)}
+ +Referral Earnings
+{referralStats.earnings.toFixed(2)} SOL
+Total Referrals
+{referralStats.count}
+No referrees yet.
+ ) : ( + referrees.map((referee, index) => ( +{referee.username}
+Joined {referee.joinedAt ? new Date(referee.joinedAt).toLocaleDateString() : 'Recently'}
+{referee.earnings} SOL earned
+