Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
93a8d21
Update constants.ts
skibbidibet Sep 6, 2024
ae6935c
Add files via upload
skibbidibet Sep 6, 2024
3a4f6b4
Update styles.css with background
skibbidibet Sep 6, 2024
a937538
Update constants.ts
skibbidibet Sep 6, 2024
87f5b69
Update WelcomeBanner.tsx
skibbidibet Sep 6, 2024
4105b9a
Delete public/logo.svg
skibbidibet Sep 6, 2024
3ec8d7b
Add files via upload
skibbidibet Sep 6, 2024
8aa418c
Delete public/logo.svg
skibbidibet Sep 6, 2024
a479e6b
Add files via upload
skibbidibet Sep 6, 2024
282967e
Update constants.ts
skibbidibet Sep 6, 2024
9a8f158
Delete public/favicon.png
skibbidibet Sep 6, 2024
195457f
Add files via upload
skibbidibet Sep 6, 2024
c56190a
Delete public/favicon.png
skibbidibet Sep 6, 2024
ab1da61
Add files via upload
skibbidibet Sep 6, 2024
6c87e50
Update index.html
skibbidibet Sep 6, 2024
4a4cdfd
Delete public/logo.svg
skibbidibet Sep 15, 2024
ea0c5b4
Add files via upload
skibbidibet Sep 15, 2024
587cbad
Update constants.ts
skibbidibet Sep 15, 2024
bbf3dff
Update constants.ts
skibbidibet Sep 15, 2024
327edac
Update constants.ts
skibbidibet Sep 15, 2024
967dbad
Update and rename .env.example to .env
skibbidibet Sep 15, 2024
8ce169b
Update RecentPlays.tsx
skibbidibet Sep 15, 2024
30e6ca3
Update package.json
skibbidibet Sep 15, 2024
70c92ad
Delete pnpm-lock.yaml
skibbidibet Sep 15, 2024
8aeef99
Update .env
skibbidibet Sep 15, 2024
1e35075
Update .env
skibbidibet Sep 15, 2024
d8105e3
Update .env
skibbidibet Sep 15, 2024
e03cd76
Delete public/fakemoney.png
skibbidibet Sep 15, 2024
e40936a
Add files via upload
skibbidibet Sep 15, 2024
cabdb31
Update .env
skibbidibet Sep 16, 2024
61e094a
Update .env
skibbidibet Sep 16, 2024
9b857c3
Update package.json
skibbidibet Sep 16, 2024
fc53bd0
Update App.tsx
skibbidibet Sep 16, 2024
89da6a9
Update index.tsx
skibbidibet Sep 16, 2024
d1e4848
Update index.tsx
skibbidibet Sep 16, 2024
bffdce1
Update index.tsx
skibbidibet Sep 16, 2024
e8bd7de
Update App.tsx
skibbidibet Sep 16, 2024
7664ddc
Update App.tsx
skibbidibet Sep 16, 2024
56bc135
Update WelcomeBanner.tsx
skibbidibet Sep 16, 2024
f2bc43c
Update RecentPlays.tsx
skibbidibet Sep 16, 2024
b8c498c
Update App.tsx
skibbidibet Sep 16, 2024
51632fb
Update index.tsx
skibbidibet Sep 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Web3 connection
VITE_RPC_ENDPOINT="https://mainnet.helius-rpc.com/?api-key=e0c1fc46-398d-49da-bb37-7f28d6d4413f"
# VITE_RPC_ENDPOINT="http://127.0.0.1:8899"
3 changes: 0 additions & 3 deletions .env.example

This file was deleted.

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="theme-color" content="#000000" />
<title>Play | Gamba</title>
<title>SKIBIDI | BET</title>
<link rel="icon" type="image/png" href="/favicon.png">
<link rel="apple-touch-icon" href="/icon-512.png" />
<meta name="apple-mobile-web-app-capable" content="yes" />
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
"@solana/wallet-adapter-react-ui": "^0.9.34",
"@solana/wallet-adapter-wallets": "^0.19.18",
"@solana/web3.js": "^1.78.5",
"@vercel/analytics": "1.3.1",
"buffer": "^6.0.3",
"gamba-react-ui-v2": "0.6.0",
"gamba-react-ui-v2": "0.7.0",
"gamba-react-v2": "1.2.0",
"gamba-core-v2": "0.4.0",
"html2canvas": "^1.4.1",
Expand Down
12,194 changes: 0 additions & 12,194 deletions pnpm-lock.yaml

This file was deleted.

Binary file modified public/fakemoney.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 1 addition & 47 deletions public/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ import { useWallet } from '@solana/wallet-adapter-react'
import { fetchReferral, getReferrerPda } from './@referral/program'
import { PublicKey } from '@solana/web3.js'
import { AnchorProvider } from '@coral-xyz/anchor'
import { Analytics } from '@vercel/analytics/react'

<Analytics />

function ScrollToTop() {
const { pathname } = useLocation()
Expand Down
16 changes: 8 additions & 8 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@ export const RPC_ENDPOINT = import.meta.env.VITE_RPC_ENDPOINT ?? 'https://api.ma

// Solana address that will receive fees when somebody plays on this platform
export const PLATFORM_CREATOR_ADDRESS = new PublicKey(
'V2grJiwjs25iJYqumbHyKo5MTK7SFqZSdmoRaj8QWb9',
'7v5ETrEL6WL2FMa5ZbpHdyjkwnfdAg8isUCzTwadeEek',
)

// Gamba explorer URL - Appears in RecentPlays
export const EXPLORER_URL = 'https://explorer.gamba.so'
export const EXPLORER_URL = 'https://skibidi.bet'

// Platform URL - Appears in ShareModal
export const PLATFORM_SHARABLE_URL = 'play.gamba.so'
export const PLATFORM_SHARABLE_URL = 'skibidi.bet'

// Creator fee (in %)
export const PLATFORM_CREATOR_FEE = 0.01 // 1% !!max 7%!!
export const PLATFORM_CREATOR_FEE = 0.07 // 1% !!max 7%!!

// Jackpot fee (in %)
export const PLATFORM_JACKPOT_FEE = 0.001 // 0.1%

// Referral fee (in %) - this gets deducted from the creator fee
export const PLATFORM_REFERRAL_FEE = 0.0025 // 0.25%
export const PLATFORM_REFERRAL_FEE = 0.05 // 0.25%

// Just a helper function
const lp = (tokenMint: PublicKey | string, poolAuthority?: PublicKey | string): PoolToken => ({
Expand Down Expand Up @@ -57,8 +57,8 @@ export const DEFAULT_POOL = POOLS[0]
export const TOKEN_METADATA: (Partial<TokenMeta> & {mint: PublicKey})[] = [
{
mint: FAKE_TOKEN_MINT,
name: 'Fake',
symbol: 'FAKE',
name: 'SKIBIDI',
symbol: 'SKIBIDI',
image: '/fakemoney.png',
baseWager: 1e9,
decimals: 9,
Expand All @@ -82,7 +82,7 @@ export const TOS_HTML = `
<p><b>3. Risk Acknowledgement:</b> Games involve risk; no guaranteed winnings.</p>
<p><b>4. No Warranty:</b> Games provided "as is"; operate randomly.</p>
<p><b>5. Limitation of Liability:</b> We're not liable for damages.</p>
<p><b>6. Licensing Disclaimer:</b> Not a licensed casino; for simulation only.</p>
<p><b>6. Manipulation disclaimer:</b> Activities are closely monitored for manupulation, subsequent action.</p>
<p><b>7. Fair Play:</b> Games are conducted fairly and transparently.</p>
<p><b>8. Data Privacy:</b> Your privacy is important to us.</p>
<p><b>9. Responsible Gaming:</b> Play responsibly; seek help if needed.</p>
Expand Down
3 changes: 2 additions & 1 deletion src/games/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { GameBundle } from 'gamba-react-ui-v2'
import React from 'react'
import { Analytics } from '@vercel/analytics/react'

export const GAMES: GameBundle[] = [
// {
Expand Down Expand Up @@ -93,7 +94,7 @@ export const GAMES: GameBundle[] = [
name: 'Plinko',
description: `
Plinko is played by dropping chips down a pegged board where they randomly fall into slots with varying win amounts. Each drop is a mix of anticipation and strategy, making Plinko an endlessly entertaining game of chance.
⚠️ Under development. Results shown might be incorrect. ⚠️
⚠️ Wait for the ball to hit the bin. Pressing multiple times may result in loss of money. ⚠️
`,
},
app: React.lazy(() => import('./Plinko')),
Expand Down
3 changes: 3 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ import App from './App'
import { DEFAULT_POOL, PLATFORM_CREATOR_ADDRESS, PLATFORM_CREATOR_FEE, PLATFORM_JACKPOT_FEE, RPC_ENDPOINT, TOKEN_METADATA, TOKEN_METADATA_FETCHER } from './constants'
import { makeReferralPlugin } from './@referral/plugin'
import './styles.css'
import { Analytics } from '@vercel/analytics/react'

<Analytics />

const root = ReactDOM.createRoot(document.getElementById('root')!)

Expand Down
14 changes: 7 additions & 7 deletions src/sections/Dashboard/WelcomeBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,20 +120,20 @@ export function WelcomeBanner() {
return (
<Welcome>
<div>
<h1>Welcome to Gamba v2 👋</h1>
<h1>Welcome to SKIBIDI 👋</h1>
<p>
A fair, simple and decentralized casino on Solana.
A fair, simple and decentralized casino on Solana. Take the SKIBIDI token for a free run.
</p>
</div>
<Buttons>
<button onClick={copyInvite}>
💸 Copy Invite
💸 Copy Invite for Referral Bonus
</button>
<button onClick={() => window.open('https://v2.gamba.so/', '_blank')}>
🚀 Add Liquidity
<button onClick={() => window.open('https://www.skibidi.bet/', '_blank')}>
🚀 Add Liquidity (SOON)
</button>
<button onClick={() => window.open('https://discord.gg/HSTtFFwR', '_blank')}>
💬 Discord
<button onClick={() => window.open('https://skibidi.bet', '_blank')}>
💬 Discord (SOON)
</button>
</Buttons>
</Welcome>
Expand Down
4 changes: 2 additions & 2 deletions src/sections/RecentPlays/RecentPlays.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function RecentPlay({ event }: {event: GambaTransaction<'GameSettled'>}) {
}

export default function RecentPlays() {
const events = useRecentPlays({ showAllPlatforms: false })
const events = useRecentPlays({ showAllPlatforms: true })
const [selectedGame, setSelectedGame] = React.useState<GambaTransaction<'GameSettled'>>()
const md = useMediaQuery('md')

Expand All @@ -91,7 +91,7 @@ export default function RecentPlays() {
),
)}
<GambaUi.Button main onClick={() => window.open(`${EXPLORER_URL}/platform/${PLATFORM_CREATOR_ADDRESS.toString()}`)}>
🚀 Explorer
🚀 Liquidity Explorer (SOON)
</GambaUi.Button>
</Container>
)
Expand Down
Binary file added src/skibidi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ h1, h2 {
}

body {
background: var(--background-color);
background: var(--background-color) url('./skibidi.png') no-repeat center center fixed;
background-size: cover; /* Ensures the image covers the entire background */
color: var(--text-color);
cursor: default;
margin: 0;
Expand Down