Compare commits
No commits in common. "5b19867a50cba6c02716f8b4f6446fb5022a365b" and "75d1bf3a7271cf3098e6ea8e1b2e5114134a8503" have entirely different histories.
5b19867a50
...
75d1bf3a72
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
|
@ -13,7 +13,7 @@ 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
|
||||
const ENABLE_REFERRAL_SYSTEM = true; // Toggle for referral system visibility
|
||||
|
||||
interface GameHistory {
|
||||
ended_time: string;
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
import { clusterApiUrl, Connection } from "@solana/web3.js";
|
||||
import { Connection } from "@solana/web3.js";
|
||||
|
||||
// Replace this URL with your dedicated RPC endpoint
|
||||
// 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://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 = clusterApiUrl("devnet");
|
||||
// export const CLUSTER_URL = clusterApiUrl("devnet");
|
||||
export const EXPLORER_ADDRESS_TEMPLATE = "https://explorer.solana.com/address/{address}";
|
||||
export const EXPLORER_TX_TEMPLATE = "https://explorer.solana.com/tx/{address}";
|
||||
export const connection = new Connection(CLUSTER_URL);
|
||||
|
|
|
|||
|
|
@ -47,14 +47,6 @@ export type Bets = {
|
|||
"writable": true,
|
||||
"signer": true
|
||||
},
|
||||
{
|
||||
"name": "ownerReferrer",
|
||||
"writable": true
|
||||
},
|
||||
{
|
||||
"name": "joinerReferrer",
|
||||
"writable": true
|
||||
},
|
||||
{
|
||||
"name": "systemProgram",
|
||||
"address": "11111111111111111111111111111111"
|
||||
|
|
|
|||
|
|
@ -41,14 +41,6 @@
|
|||
"writable": true,
|
||||
"signer": true
|
||||
},
|
||||
{
|
||||
"name": "owner_referrer",
|
||||
"writable": true
|
||||
},
|
||||
{
|
||||
"name": "joiner_referrer",
|
||||
"writable": true
|
||||
},
|
||||
{
|
||||
"name": "system_program",
|
||||
"address": "11111111111111111111111111111111"
|
||||
|
|
|
|||
|
|
@ -147,9 +147,7 @@ export async function closeBet(wallets: ConnectedSolanaWallet, uid:string, betI
|
|||
betVault: chosenBet,
|
||||
betsList: bet_list_pda,
|
||||
winner: winner,
|
||||
feeWallet: FEE_COLLECTOR_PUBKEY,
|
||||
ownerReferrer: FEE_COLLECTOR_PUBKEY,
|
||||
joinerReferrer: FEE_COLLECTOR_PUBKEY
|
||||
feeWallet: FEE_COLLECTOR_PUBKEY
|
||||
})
|
||||
.transaction();
|
||||
tx.feePayer = new PublicKey(wallets.address);
|
||||
|
|
|
|||
|
|
@ -1,11 +0,0 @@
|
|||
#!/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
|
||||
Loading…
Reference in New Issue
Block a user