Compare commits

...

14 Commits

Author SHA1 Message Date
5b19867a50 dev converted the master 2025-05-20 21:10:45 +05:30
9047616c79 at launch 2025-05-20 03:13:24 +00:00
48f3b72e81 idl update 2025-05-18 20:07:58 +00:00
ad8fb39db2 Merge remote-tracking branch 'origin/dev' 2025-05-18 20:05:21 +00:00
4274ffe2b6 ws update 2025-05-04 13:57:25 +05:30
d93c4f1ef5 wallsmash sfx 2025-05-04 13:47:40 +05:30
4b1a0c8257 snakes sfx 2025-05-04 12:09:51 +05:30
07fffb9320 wall smash and snakes 2025-05-04 11:46:30 +05:30
1912695db8 wall smash 2025-05-02 22:10:45 +05:30
663f5c3435 wall smash 2025-05-02 22:04:30 +05:30
65cd4ad11c prod bug wallsmash 2025-05-02 16:23:27 +00:00
45f992c386 Merge remote-tracking branch 'origin/dev' 2025-05-02 15:17:07 +00:00
1e390445f4 Merge branch 'master' of https://gitea.playpoolstudios.com/warlock/duelfi 2025-05-02 15:16:48 +00:00
d42c0f84ed prod 2025-04-29 22:52:13 +05:30
9 changed files with 35 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@ import { games } from "@/data/games";
import { WAGER_PRIZE_MULT } from "@/shared/constants"; import { WAGER_PRIZE_MULT } from "@/shared/constants";
import { EXPLORER_ADDRESS_TEMPLATE } from "@/data/shared"; import { EXPLORER_ADDRESS_TEMPLATE } from "@/data/shared";
const ENABLE_REFERRAL_SYSTEM = true; // Toggle for referral system visibility const ENABLE_REFERRAL_SYSTEM = false; // Toggle for referral system visibility
interface GameHistory { interface GameHistory {
ended_time: string; ended_time: string;

View File

@ -1,12 +1,12 @@
import { Connection } from "@solana/web3.js"; import { clusterApiUrl, Connection } from "@solana/web3.js";
// Replace this URL with your dedicated RPC endpoint // Replace this URL with your dedicated RPC endpoint
// You can get one from providers like QuickNode, Alchemy, Helius, or GenesysGo // You can get one from providers like QuickNode, Alchemy, Helius, or GenesysGo
// export const CLUSTER_URL = "https://tiniest-cold-darkness.solana-mainnet.quiknode.pro/72332d636ff78d498b880bd8fdc3eb646c827da8/"; // export const CLUSTER_URL = "https://tiniest-cold-darkness.solana-mainnet.quiknode.pro/72332d636ff78d498b880bd8fdc3eb646c827da8/";
// export const CLUSTER_URL = "https://go.getblock.io/908837801b534ae7a6f0869fc44cc567"; // export const CLUSTER_URL = "https://go.getblock.io/908837801b534ae7a6f0869fc44cc567";
export const CLUSTER_URL = "https://solana-mainnet.core.chainstack.com/c54e14eef17693283a0323efcc4ce731"; // export const CLUSTER_URL = "https://solana-mainnet.core.chainstack.com/c54e14eef17693283a0323efcc4ce731";
// export const CLUSTER_URL = "https://mainnet.helius-rpc.com/?api-key=72332d63-6ff7-4d49-8b88-0bd8fdc3eb64"; // export const CLUSTER_URL = "https://mainnet.helius-rpc.com/?api-key=72332d63-6ff7-4d49-8b88-0bd8fdc3eb64";
// export const CLUSTER_URL = clusterApiUrl("devnet"); export const CLUSTER_URL = clusterApiUrl("devnet");
export const EXPLORER_ADDRESS_TEMPLATE = "https://explorer.solana.com/address/{address}"; export const EXPLORER_ADDRESS_TEMPLATE = "https://explorer.solana.com/address/{address}";
export const EXPLORER_TX_TEMPLATE = "https://explorer.solana.com/tx/{address}"; export const EXPLORER_TX_TEMPLATE = "https://explorer.solana.com/tx/{address}";
export const connection = new Connection(CLUSTER_URL); export const connection = new Connection(CLUSTER_URL);

View File

@ -47,6 +47,14 @@ export type Bets = {
"writable": true, "writable": true,
"signer": true "signer": true
}, },
{
"name": "ownerReferrer",
"writable": true
},
{
"name": "joinerReferrer",
"writable": true
},
{ {
"name": "systemProgram", "name": "systemProgram",
"address": "11111111111111111111111111111111" "address": "11111111111111111111111111111111"

View File

@ -41,6 +41,14 @@
"writable": true, "writable": true,
"signer": true "signer": true
}, },
{
"name": "owner_referrer",
"writable": true
},
{
"name": "joiner_referrer",
"writable": true
},
{ {
"name": "system_program", "name": "system_program",
"address": "11111111111111111111111111111111" "address": "11111111111111111111111111111111"

View File

@ -147,7 +147,9 @@ export async function closeBet(wallets: ConnectedSolanaWallet, uid:string, betI
betVault: chosenBet, betVault: chosenBet,
betsList: bet_list_pda, betsList: bet_list_pda,
winner: winner, winner: winner,
feeWallet: FEE_COLLECTOR_PUBKEY feeWallet: FEE_COLLECTOR_PUBKEY,
ownerReferrer: FEE_COLLECTOR_PUBKEY,
joinerReferrer: FEE_COLLECTOR_PUBKEY
}) })
.transaction(); .transaction();
tx.feePayer = new PublicKey(wallets.address); tx.feePayer = new PublicKey(wallets.address);

11
start-server.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
# Load NVM
export NVM_DIR="/root/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
# Navigate to the project directory
cd /root/duelfi/duelfi
# Run the server
npm run start